diff options
author | Martin Kiewitz | 2010-07-14 14:55:22 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-14 14:55:22 +0000 |
commit | 14e25d138c20060067d0986eeeaf20d912ada0e6 (patch) | |
tree | 5fb846a7c7cbae47e46c5e4060c0539a55b89103 /engines | |
parent | 36fdc68b2bdaea952213460ee1475ddea70cc210 (diff) | |
download | scummvm-rg350-14e25d138c20060067d0986eeeaf20d912ada0e6.tar.gz scummvm-rg350-14e25d138c20060067d0986eeeaf20d912ada0e6.tar.bz2 scummvm-rg350-14e25d138c20060067d0986eeeaf20d912ada0e6.zip |
SCI: fix regression of r50831 - we want to abort when unknown savegameIds are used, not the other way round :P
svn-id: r50887
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index 9a0827237f..3848d413f2 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -541,7 +541,7 @@ reg_t kSaveGame(EngineState *s, int argc, reg_t *argv) { if ((virtualId >= SAVEGAMEID_OFFICIALRANGE_START) && (virtualId <= SAVEGAMEID_OFFICIALRANGE_END)) { // savegameId is an actual Id, so search for it just to make sure savegameId = virtualId - SAVEGAMEID_OFFICIALRANGE_START; - if (findSavegame(saves, savegameId) != -1) + if (findSavegame(saves, savegameId) == -1) return NULL_REG; } else if (virtualId < SAVEGAMEID_OFFICIALRANGE_START) { // virtualId is low, we assume that scripts expect us to create new slot |