From 6944f24118eee8135f2465bed4f728fe1445f723 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Dec 2023 18:26:38 +0100 Subject: a --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/editor.cpp') diff --git a/editor/editor.cpp b/editor/editor.cpp index 816f73e3..984fa0a1 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -137,7 +137,7 @@ void editor::on_click_(world& world, global_coords pos, button b) { default: break; case button::place: - if (const auto& sel = mode->get_selected()) + if (const auto* sel = mode->get_selected()) mode->place_tile(world, pos, sel, *_app); break; case button::remove: -- cgit v1.2.3