From 499b61c9a51fdd0e7a82c8dfc5b8e6e814f24fdb Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 6 Feb 2026 23:19:40 -0500 Subject: [PATCH] Fix CommunityChestModalGame getting stuck after dismissal by correctly deleting it --- games/monopoly/monopoly_game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/games/monopoly/monopoly_game.cpp b/games/monopoly/monopoly_game.cpp index f720dfa..19bc15c 100644 --- a/games/monopoly/monopoly_game.cpp +++ b/games/monopoly/monopoly_game.cpp @@ -255,6 +255,9 @@ bool MonopolyGame::update(const InputEvent& event) { const CommunityCard* card = &COMMUNITY_DECK[last_drawn_community_idx]; last_drawn_community_idx = -1; + delete active_modal; + active_modal = nullptr; + bool position_changed = false; int old_pos = p->position;