Fix for bug #2954279 "KYRA: Error when loading non-existent savegame".

svn-id: r48089
This commit is contained in:
Johannes Schickel 2010-02-19 14:05:55 +00:00
parent 8502d9248e
commit 049b4384bc

View File

@ -266,7 +266,8 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag)
int saveLoadSlot = 9 - (event.kbd.keycode - Common::KEYCODE_0) + 990;
if (event.kbd.flags == Common::KBD_CTRL) {
loadGameStateCheck(saveLoadSlot);
if (saveFileLoadable(saveLoadSlot))
loadGameStateCheck(saveLoadSlot);
_eventList.clear();
breakLoop = true;
} else {