diff options
author | Nicolas Bacca | 2003-04-09 21:59:23 +0000 |
---|---|---|
committer | Nicolas Bacca | 2003-04-09 21:59:23 +0000 |
commit | 233ef120804a246e44f4dd27b0a8d8a9fcb02003 (patch) | |
tree | 115888277feb6f8ee55ca603f6d010842cc6bc3b | |
parent | 8c4d7e2d97a663f5c49100b6405d73071f2bbe41 (diff) | |
download | scummvm-rg350-233ef120804a246e44f4dd27b0a8d8a9fcb02003.tar.gz scummvm-rg350-233ef120804a246e44f4dd27b0a8d8a9fcb02003.tar.bz2 scummvm-rg350-233ef120804a246e44f4dd27b0a8d8a9fcb02003.zip |
It's correct this time. Really. Trust me.
svn-id: r6950
-rw-r--r-- | scumm/script_v6.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index bcdf103853..d872da4715 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -425,7 +425,7 @@ void Scumm::writeArray(int array, int idx, int base, int value) { } 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 @@ void Scumm::writeArray(int array, int idx, int base, int value) { } 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 |