[Scummvm-git-logs] scummvm master -> 14d130cc9bbdb4b9361fbe54be6f6e92616a0ebf

hax0kartik noreply at scummvm.org
Tue Nov 14 12:23:51 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

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


Commit: 14d130cc9bbdb4b9361fbe54be6f6e92616a0ebf
    https://github.com/scummvm/scummvm/commit/14d130cc9bbdb4b9361fbe54be6f6e92616a0ebf
Author: Kartik Agarwala (agarwala.kartik at gmail.com)
Date: 2023-11-14T17:52:32+05:30

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

Changed paths:
    engines/crab/mainmenu.cpp


diff --git a/engines/crab/mainmenu.cpp b/engines/crab/mainmenu.cpp
index 74c35d59d69..d171edf75c7 100644
--- a/engines/crab/mainmenu.cpp
+++ b/engines/crab/mainmenu.cpp
@@ -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);




More information about the Scummvm-git-logs mailing list