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); } }