[Scummvm-cvs-logs] SF.net SVN: scummvm:[54324] scummvm/trunk/engines/sci/engine/script.cpp

lskovlun at users.sourceforge.net lskovlun at users.sourceforge.net
Thu Nov 18 17:58:25 CET 2010


Revision: 54324
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54324&view=rev
Author:   lskovlun
Date:     2010-11-18 16:58:25 +0000 (Thu, 18 Nov 2010)

Log Message:
-----------
Fix operator precedence problem

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/script.cpp

Modified: scummvm/trunk/engines/sci/engine/script.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/script.cpp	2010-11-18 16:38:03 UTC (rev 54323)
+++ scummvm/trunk/engines/sci/engine/script.cpp	2010-11-18 16:58:25 UTC (rev 54324)
@@ -178,7 +178,7 @@
 		_localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2);
 	} else if (getSciVersion() == SCI_VERSION_3) {
 		_localsCount = READ_LE_UINT16(_buf + 12);
-		_exportTable = (const uint16 *) _buf + 22;
+		_exportTable = (const uint16 *) (_buf + 22);
 		_numExports = READ_LE_UINT16(_buf + 20);
 		// SCI3 local variables always start dword-aligned
 		if (_numExports % 2)


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