[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.91,1.92
Nicolas Bacca
arisme at users.sourceforge.net
Wed Apr 9 15:00:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv31808
Modified Files:
script_v6.cpp
Log Message:
It's correct this time. Really. Trust me.
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- script_v6.cpp 6 Apr 2003 16:48:52 -0000 1.91
+++ script_v6.cpp 9 Apr 2003 21:59:23 -0000 1.92
@@ -425,7 +425,7 @@
} else if (_features & GF_AFTER_V8) {
#if defined(SCUMM_NEED_ALIGNMENT)
uint32 tmp = TO_LE_32(value);
- memcpy(&ah->data[base], &tmp, 4);
+ memcpy(&((uint32*)ah->data)[base], &tmp, 4);
#else
((uint32 *)ah->data)[base] = TO_LE_32(value);
#endif
@@ -433,7 +433,7 @@
} else {
#if defined(SCUMM_NEED_ALIGNMENT)
uint16 tmp = TO_LE_16(value);
- memcpy(&ah->data[base], &tmp, 2);
+ memcpy(&((uint16*)ah->data)[base], &tmp, 2);
#else
((uint16 *)ah->data)[base] = TO_LE_16(value);
#endif
More information about the Scummvm-git-logs
mailing list