aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorTorbjörn Andersson2017-08-06 12:29:21 +0200
committerTorbjörn Andersson2017-08-06 12:29:21 +0200
commit9f34aa69b7d3f8862352984c2681789f431ecf94 (patch)
treef1cc496b529b131ebcb3e6c259355104168ed151 /engines/gob
parent462f1c98597589a3baf241ab2c1bb4dba991374e (diff)
downloadscummvm-rg350-9f34aa69b7d3f8862352984c2681789f431ecf94.tar.gz
scummvm-rg350-9f34aa69b7d3f8862352984c2681789f431ecf94.tar.bz2
scummvm-rg350-9f34aa69b7d3f8862352984c2681789f431ecf94.zip
GOB: Fix what looks like an obviously incorrect condition
Though since I don't have the game I can't actually test it. :-)
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/pregob/onceupon/onceupon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/pregob/onceupon/onceupon.cpp b/engines/gob/pregob/onceupon/onceupon.cpp
index 50910e77bd..ab9b142799 100644
--- a/engines/gob/pregob/onceupon/onceupon.cpp
+++ b/engines/gob/pregob/onceupon/onceupon.cpp
@@ -984,7 +984,7 @@ OnceUpon::MenuAction OnceUpon::doIngameMenu() {
// User pressed the return to game button
action = kMenuActionPlay;
- } else if (kMenuActionMainMenu) {
+ } else if (action == kMenuActionMainMenu) {
// User pressed the return to main menu button
action = handleMainMenu();