aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorJoost Peters2009-07-25 13:07:17 +0000
committerJoost Peters2009-07-25 13:07:17 +0000
commitddd2b29beece3c03bfab11daa3530bc924388590 (patch)
tree054a30092474deb01479a7a9279bd1557790d064 /engines/cruise
parentfa4903f19ccef07423bd254e15a683078f763def (diff)
downloadscummvm-rg350-ddd2b29beece3c03bfab11daa3530bc924388590.tar.gz
scummvm-rg350-ddd2b29beece3c03bfab11daa3530bc924388590.tar.bz2
scummvm-rg350-ddd2b29beece3c03bfab11daa3530bc924388590.zip
fix another aligned write
svn-id: r42753
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/linker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/cruise/linker.cpp b/engines/cruise/linker.cpp
index bfd5689e2f..2d14d46ce3 100644
--- a/engines/cruise/linker.cpp
+++ b/engines/cruise/linker.cpp
@@ -183,9 +183,7 @@ int updateScriptImport(int ovlIdx) {
uint8 *ptr = ptrData + temp;
*(ptr + 1) = out2;
- *(int16 *)(ptr + 2) = ptrDest2->idx;
-
- bigEndianShortToNative((int16 *)(ptr + 2));
+ WRITE_BE_UINT16(ptr + 2, ptrDest2->idx);
} else {
if (param2 == 20 || param2 == 30 || param2 == 40 || param2 == 50) { // this patch a double push
uint8 *ptr = ptrData + temp;