aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-02-19 14:05:55 +0000
committerJohannes Schickel2010-02-19 14:05:55 +0000
commit049b4384bcfeaad3fba5678dbfee08ebcd3d7f0c (patch)
tree6e599ae1963be244a949fe1fb8d8deb0cbd247ce
parent8502d9248ed348a66850a58861addaf8a685e713 (diff)
downloadscummvm-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.cpp3
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 {