[Scummvm-cvs-logs] SF.net SVN: scummvm: [21216] scummvm/trunk/engines/scumm/he/script_v90he.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Sat Mar 11 01:44:02 CET 2006


Revision: 21216
Author:   kirben
Date:     2006-03-11 01:43:00 -0800 (Sat, 11 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21216&view=rev

Log Message:
-----------
Fix endian issue in getArrayDim()

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/script_v90he.cpp
Modified: scummvm/trunk/engines/scumm/he/script_v90he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/script_v90he.cpp	2006-03-11 08:49:06 UTC (rev 21215)
+++ scummvm/trunk/engines/scumm/he/script_v90he.cpp	2006-03-11 09:43:00 UTC (rev 21216)
@@ -2215,16 +2215,16 @@
 	ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
 	assert(ah);
 	if (dim2start && *dim2start == -1) {
-		*dim2start = ah->dim2start;
+		*dim2start = FROM_LE_32(ah->dim2start);
 	}
 	if (dim2end && *dim2end == -1) {
-		*dim2end = ah->dim2end;
+		*dim2end = FROM_LE_32(ah->dim2end);
 	}
 	if (dim1start && *dim1start == -1) {
-		*dim1start = ah->dim1start;
+		*dim1start = FROM_LE_32(ah->dim1start);
 	}
 	if (dim1end && *dim1end == -1) {
-		*dim1end = ah->dim1end;
+		*dim1end = FROM_LE_32(ah->dim1end);
 	}
 }
 


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