CRAB: Fix bug due to which loadgame dialog could pop up twice

This commit is contained in:
Kartik Agarwala 2023-11-14 17:50:12 +05:30
parent d84bcb3340
commit 14d130cc9b

View File

@ -232,14 +232,12 @@ void MainMenu::handleEvents(Common::Event &event, bool &shouldChangeState, GameS
break;
case STATE_LOAD:
if (!g_engine->loadGameDialog())
changeState(STATE_NORMAL);
else {
if (g_engine->loadGameDialog()) {
shouldChangeState = true;
newStateId = GAMESTATE_LOAD_GAME;
return;
}
break;
changeState(STATE_NORMAL);
return;
case STATE_DIFF: {
int choice = _diff._menu.handleEvents(event);