[Scummvm-cvs-logs] SF.net SVN: scummvm:[49650] scummvm/trunk/engines/sci/engine/segment.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Mon Jun 14 15:13:03 CEST 2010
Revision: 49650
http://scummvm.svn.sourceforge.net/scummvm/?rev=49650&view=rev
Author: thebluegr
Date: 2010-06-14 13:13:02 +0000 (Mon, 14 Jun 2010)
Log Message:
-----------
Fixed a bug with commit #49640
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/segment.cpp
Modified: scummvm/trunk/engines/sci/engine/segment.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/segment.cpp 2010-06-14 12:44:57 UTC (rev 49649)
+++ scummvm/trunk/engines/sci/engine/segment.cpp 2010-06-14 13:13:02 UTC (rev 49650)
@@ -196,12 +196,12 @@
_numSynonyms = 0;
if (getSciVersion() >= SCI_VERSION_1_1) {
- if (READ_LE_UINT16(_buf + 1 + 5) > 0) {
+ if (READ_LE_UINT16(_buf + 1 + 5) > 0) { // does the script have an export table?
_exportTable = (const uint16 *)(_buf + 1 + 5 + 2);
_numExports = READ_SCI11ENDIAN_UINT16(_exportTable - 1);
- _localsOffset = _scriptSize + 4;
- _localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2);
}
+ _localsOffset = _scriptSize + 4;
+ _localsCount = READ_SCI11ENDIAN_UINT16(_buf + _localsOffset - 2);
} else {
_exportTable = (const uint16 *)findBlock(SCI_OBJ_EXPORTS);
if (_exportTable) {
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