summaryrefslogtreecommitdiffhomepage
path: root/editor/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.cpp')
-rw-r--r--editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
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: