[Scummvm-cvs-logs] SF.net SVN: scummvm:[50887] scummvm/trunk/engines/sci/engine/kfile.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Wed Jul 14 16:55:23 CEST 2010
Revision: 50887
http://scummvm.svn.sourceforge.net/scummvm/?rev=50887&view=rev
Author: m_kiewitz
Date: 2010-07-14 14:55:22 +0000 (Wed, 14 Jul 2010)
Log Message:
-----------
SCI: fix regression of r50831 - we want to abort when unknown savegameIds are used, not the other way round :P
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kfile.cpp
Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp 2010-07-14 14:18:40 UTC (rev 50886)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp 2010-07-14 14:55:22 UTC (rev 50887)
@@ -541,7 +541,7 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list