mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
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:
parent
36fdc68b2b
commit
14e25d138c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user