diff options
author | Filippos Karapetis | 2010-06-28 20:58:32 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-28 20:58:32 +0000 |
commit | 0b33cc0dab3c71d631d38742c3125bd88f4e759a (patch) | |
tree | a9af1bca29ae1411b45587f3ca9b6083b7c90fc3 /engines/sci/sci.cpp | |
parent | 438e670166768df06025f50c68e2d8fbe0f93407 (diff) | |
download | scummvm-rg350-0b33cc0dab3c71d631d38742c3125bd88f4e759a.tar.gz scummvm-rg350-0b33cc0dab3c71d631d38742c3125bd88f4e759a.tar.bz2 scummvm-rg350-0b33cc0dab3c71d631d38742c3125bd88f4e759a.zip |
Fixed loading of saved games from the launcher
svn-id: r50460
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 822adb592b..fd4c4e9137 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -236,8 +236,9 @@ Common::Error SciEngine::run() { debug("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion())); // Check whether loading a savestate was requested - if (ConfMan.hasKey("save_slot")) { - reg_t restoreArgv[2] = { NULL_REG, make_reg(0, ConfMan.getInt("save_slot")) }; // special call (argv[0] is NULL) + int saveSlot = ConfMan.getInt("save_slot"); + if (saveSlot >= 0) { + reg_t restoreArgv[2] = { NULL_REG, make_reg(0, saveSlot) }; // special call (argv[0] is NULL) kRestoreGame(_gamestate, 2, restoreArgv); // Initialize the game menu, if there is one. |