aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-29 13:20:47 -0400
committerPaul Gilbert2018-04-29 13:20:47 -0400
commit7798de5bc60f267d71d8ac85e626326b1bdd157c (patch)
tree4a180c7c61751d897ce416b0948778fbd3206856 /engines
parente403167d0313df77b78a75a881a6a8882612fc2a (diff)
downloadscummvm-rg350-7798de5bc60f267d71d8ac85e626326b1bdd157c.tar.gz
scummvm-rg350-7798de5bc60f267d71d8ac85e626326b1bdd157c.tar.bz2
scummvm-rg350-7798de5bc60f267d71d8ac85e626326b1bdd157c.zip
XEEN: Fix opening Other Options menu after canceling loading a save
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/worldofxeen/worldofxeen_menu.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/xeen/worldofxeen/worldofxeen_menu.cpp b/engines/xeen/worldofxeen/worldofxeen_menu.cpp
index 81cb7f14d9..7af017f1d3 100644
--- a/engines/xeen/worldofxeen/worldofxeen_menu.cpp
+++ b/engines/xeen/worldofxeen/worldofxeen_menu.cpp
@@ -258,6 +258,7 @@ void WorldOfXeenCDMainMenuContainer::showMenuDialog() {
/*------------------------------------------------------------------------*/
bool MainMenuDialog::handleEvents() {
+ FileManager &files = *g_vm->_files;
checkEvents(g_vm);
int difficulty;
@@ -274,14 +275,18 @@ bool MainMenuDialog::handleEvents() {
g_vm->_gameMode = GMODE_PLAY_GAME;
break;
- case Common::KEYCODE_l:
+ case Common::KEYCODE_l: {
// Load existing game
+ int ccNum = files._ccNum;
g_vm->_saves->newGame();
- if (!g_vm->_saves->loadGame())
+ if (!g_vm->_saves->loadGame()) {
+ files.setGameCc(ccNum);
return true;
+ }
g_vm->_gameMode = GMODE_PLAY_GAME;
break;
+ }
case Common::KEYCODE_c:
case Common::KEYCODE_v: