aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2003-04-06 16:48:52 +0000
committerNicolas Bacca2003-04-06 16:48:52 +0000
commitd3d85bf0036969787a9f89b567a96d75f21241cf (patch)
treed32a201edfd09be2500b4d7693e7ab88f19a319f /scumm/script_v6.cpp
parent8a619598e934c6b7170ad7c601e1130e715020d0 (diff)
downloadscummvm-rg350-d3d85bf0036969787a9f89b567a96d75f21241cf.tar.gz
scummvm-rg350-d3d85bf0036969787a9f89b567a96d75f21241cf.tar.bz2
scummvm-rg350-d3d85bf0036969787a9f89b567a96d75f21241cf.zip
Oops on previous fix
svn-id: r6921
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 76cd08582b..bcdf103853 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -424,14 +424,16 @@ void Scumm::writeArray(int array, int idx, int base, int value) {
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