[Scummvm-cvs-logs] SF.net SVN: scummvm: [30176] scummvm/trunk/engines/scumm/he/script_v60he. cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Thu Jan 3 04:20:32 CET 2008
Revision: 30176
http://scummvm.svn.sourceforge.net/scummvm/?rev=30176&view=rev
Author: Kirben
Date: 2008-01-02 19:20:32 -0800 (Wed, 02 Jan 2008)
Log Message:
-----------
Fix endian issue in redimArray.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/he/script_v60he.cpp
Modified: scummvm/trunk/engines/scumm/he/script_v60he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/script_v60he.cpp 2008-01-03 00:34:52 UTC (rev 30175)
+++ scummvm/trunk/engines/scumm/he/script_v60he.cpp 2008-01-03 03:20:32 UTC (rev 30176)
@@ -1252,7 +1252,7 @@
error("redimArray: Invalid array (%d) reference", readVar(arrayId));
newSize = (type == kIntArray) ? 2 : 1;
- oldSize = (ah->type == kIntArray) ? 2 : 1;
+ oldSize = (FROM_LE_16(ah->type) == kIntArray) ? 2 : 1;
newSize *= (newX + 1) * (newY + 1);
oldSize *= FROM_LE_16(ah->dim1) * FROM_LE_16(ah->dim2);
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