diff options
author | Johannes Schickel | 2010-02-19 14:05:55 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-02-19 14:05:55 +0000 |
commit | 049b4384bcfeaad3fba5678dbfee08ebcd3d7f0c (patch) | |
tree | 6e599ae1963be244a949fe1fb8d8deb0cbd247ce | |
parent | 8502d9248ed348a66850a58861addaf8a685e713 (diff) | |
download | scummvm-rg350-049b4384bcfeaad3fba5678dbfee08ebcd3d7f0c.tar.gz scummvm-rg350-049b4384bcfeaad3fba5678dbfee08ebcd3d7f0c.tar.bz2 scummvm-rg350-049b4384bcfeaad3fba5678dbfee08ebcd3d7f0c.zip |
Fix for bug #2954279 "KYRA: Error when loading non-existent savegame".
svn-id: r48089
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 2c2d6a424b..eebb493e38 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -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 { |