diff options
Diffstat (limited to 'engines/kyra/gui_v1.cpp')
-rw-r--r-- | engines/kyra/gui_v1.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/kyra/gui_v1.cpp b/engines/kyra/gui_v1.cpp index 12c9648f10..e5800832cb 100644 --- a/engines/kyra/gui_v1.cpp +++ b/engines/kyra/gui_v1.cpp @@ -624,6 +624,8 @@ int GUI_v1::loadGameMenu(Button *button) { _displaySubMenu = true; _cancelSubMenu = false; + _vm->_gameToLoad = -1; + while (_displaySubMenu && !_vm->_quitFlag) { getInput(); Common::Point mouse = _vm->getMousePos(); @@ -639,7 +641,8 @@ int GUI_v1::loadGameMenu(Button *button) { updateAllMenuButtons(); } else { restorePalette(); - _vm->loadGame(_vm->getSavegameFilename(_vm->_gameToLoad)); + if (_vm->_gameToLoad != -1) + _vm->loadGame(_vm->getSavegameFilename(_vm->_gameToLoad)); _displayMenu = false; _menuRestoreScreen = false; } |