mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
CRAB: Fix bug due to which loadgame dialog could pop up twice
This commit is contained in:
parent
d84bcb3340
commit
14d130cc9b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user