[Scummvm-cvs-logs] SF.net SVN: scummvm:[49110] scummvm/trunk/engines/sci/detection.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu May 20 01:29:27 CEST 2010


Revision: 49110
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49110&view=rev
Author:   thebluegr
Date:     2010-05-19 23:29:27 +0000 (Wed, 19 May 2010)

Log Message:
-----------
Slight bugfix in the object iteration inside getSierraGameId()

Modified Paths:
--------------
    scummvm/trunk/engines/sci/detection.cpp

Modified: scummvm/trunk/engines/sci/detection.cpp
===================================================================
--- scummvm/trunk/engines/sci/detection.cpp	2010-05-19 21:10:43 UTC (rev 49109)
+++ scummvm/trunk/engines/sci/detection.cpp	2010-05-19 23:29:27 UTC (rev 49110)
@@ -232,7 +232,8 @@
 			exportsOffset = READ_UINT16(script000->_buf + curOffset + 2);
 			break;
 		}
-	} while (objType != 0);
+		curOffset += objLength - 4;
+	} while (objType != 0 && curOffset < script->size - 2);
 
 	// The game object is the first export. Script 0 is always at segment 1
 	reg_t gameObj = make_reg(1, exportsOffset);


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