summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-01 20:24:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-01 20:32:21 +0100
commit4c39db7af4e87f3b8ce92de8f25e88c6cdf12ce9 (patch)
tree32545f17184b92b498d3a8c8c71262a50ccc323f
parentf9c5ec11383d71504ae59c6084ab7b46c3832a17 (diff)
editor: fix warning
-rw-r--r--editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index 11d26fdd..cfb36480 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -53,7 +53,7 @@ global_coords editor::apply_snap(global_coords pos, global_coords last, snap_mod
void editor::on_mouse_move(world& world, global_coords& pos, int mods)
{
- if (auto* mode = current_tile_editor())
+ if ([[maybe_unused]] auto* mode = current_tile_editor())
{
if (_last_pos && _last_pos->btn != button::none)
{