[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.90,1.91

Nicolas Bacca arisme at users.sourceforge.net
Sun Apr 6 09:49:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv22784

Modified Files:
	script_v6.cpp 
Log Message:
Oops on previous fix

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- script_v6.cpp	6 Apr 2003 12:57:25 -0000	1.90
+++ script_v6.cpp	6 Apr 2003 16:48:52 -0000	1.91
@@ -424,14 +424,16 @@
 		ah->data[base] = value;
 	} else if (_features & GF_AFTER_V8) {
 #if defined(SCUMM_NEED_ALIGNMENT)
-		memcpy(&ah->data[base], &TO_LE_32(value), 4);
+		uint32 tmp = TO_LE_32(value);
+		memcpy(&ah->data[base], &tmp, 4);
 #else
 		((uint32 *)ah->data)[base] = TO_LE_32(value);
 #endif
 		
 	} else {
 #if defined(SCUMM_NEED_ALIGNMENT)
-		memcpy(&ah->data[base], &TO_LE_16(value), 2);
+		uint16 tmp = TO_LE_16(value);
+		memcpy(&ah->data[base], &tmp, 2);
 #else
 		((uint16 *)ah->data)[base] = TO_LE_16(value);
 #endif





More information about the Scummvm-git-logs mailing list