Fix CommunityChestModalGame getting stuck after dismissal by correctly deleting it

This commit is contained in:
Adolfo Reyna
2026-02-06 23:19:40 -05:00
parent 64f61759d7
commit 499b61c9a5

View File

@@ -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;