[Scummvm-cvs-logs] SF.net SVN: scummvm: [30177] scummvm/branches/branch-0-11-0/engines/scumm/ he/script_v60he.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu Jan 3 04:22:19 CET 2008


Revision: 30177
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30177&view=rev
Author:   Kirben
Date:     2008-01-02 19:22:14 -0800 (Wed, 02 Jan 2008)

Log Message:
-----------
Backport fix for endian issue in redimArray.

Modified Paths:
--------------
    scummvm/branches/branch-0-11-0/engines/scumm/he/script_v60he.cpp

Modified: scummvm/branches/branch-0-11-0/engines/scumm/he/script_v60he.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/engines/scumm/he/script_v60he.cpp	2008-01-03 03:20:32 UTC (rev 30176)
+++ scummvm/branches/branch-0-11-0/engines/scumm/he/script_v60he.cpp	2008-01-03 03:22:14 UTC (rev 30177)
@@ -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