SCI: fix regression of r50831 - we want to abort when unknown savegameIds are used, not the other way round :P

svn-id: r50887
This commit is contained in:
Martin Kiewitz 2010-07-14 14:55:22 +00:00
parent 36fdc68b2b
commit 14e25d138c

View File

@ -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