Fix CommunityChestModalGame getting stuck after dismissal by correctly deleting it
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user