summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-05 07:49:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-05 07:49:08 +0100
commitee94c1d03a571369d45645be16ab4f5cd5ae9f53 (patch)
tree580620ca1dbea031e9eb4d00b29c4b4f83889157
parentbd34d6ef65fed8d28be57a41f70bf2abada00c76 (diff)
editor: fix warning
-rw-r--r--editor/update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index d55419ab..f6d64411 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -142,7 +142,7 @@ void app::update(float dt)
do_camera(dt, keys, get_key_modifiers());
clear_non_repeated_keys();
- if (clickable_scenery* s = find_clickable_scenery(cursor.pixel))
+ if ([[maybe_unused]] clickable_scenery* s = find_clickable_scenery(cursor.pixel))
M->set_cursor(std::uint32_t(Cursor::Hand));
else
M->set_cursor(std::uint32_t(Cursor::Arrow));