From 80b8a6dc0bca3371d6bb8411e4c00e351dfe40f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 21 May 2026 06:28:43 +0200 Subject: [PATCH] Change check. Took 3 minutes --- cockatrice/src/game/game_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/game/game_scene.cpp b/cockatrice/src/game/game_scene.cpp index 511d07b56..b2cf92ed1 100644 --- a/cockatrice/src/game/game_scene.cpp +++ b/cockatrice/src/game/game_scene.cpp @@ -408,7 +408,7 @@ void GameScene::onArrowCreateRequested(ArrowData data) void GameScene::onArrowDeleteRequested(int arrowId) { - if (auto *arrow = arrowRegistry.value(arrowId)) { + if (arrowRegistry.contains(arrowId)) { emit requestArrowDeletion(arrowId); } }