aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/script_v60he.cpp
diff options
context:
space:
mode:
authorTravis Howell2008-01-03 03:20:32 +0000
committerTravis Howell2008-01-03 03:20:32 +0000
commit639929a09e166f7a55a3cfcfa94e56d4e9bd1337 (patch)
tree5df71ef74e26f05c8278ce7acdd58e5bb263c03f /engines/scumm/he/script_v60he.cpp
parent9efa3a5ec35f01374c63c7d89f9150787d5d620a (diff)
downloadscummvm-rg350-639929a09e166f7a55a3cfcfa94e56d4e9bd1337.tar.gz
scummvm-rg350-639929a09e166f7a55a3cfcfa94e56d4e9bd1337.tar.bz2
scummvm-rg350-639929a09e166f7a55a3cfcfa94e56d4e9bd1337.zip
Fix endian issue in redimArray.
svn-id: r30176
Diffstat (limited to 'engines/scumm/he/script_v60he.cpp')
-rw-r--r--engines/scumm/he/script_v60he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp
index 6119e9e920..91312a4cfa 100644
--- a/engines/scumm/he/script_v60he.cpp
+++ b/engines/scumm/he/script_v60he.cpp
@@ -1252,7 +1252,7 @@ void ScummEngine_v60he::redimArray(int arrayId, int newX, int newY, int type) {
error("redimArray: Invalid array (%d) reference", readVar(arrayId));
newSize = (type == kIntArray) ? 2 : 1;
- oldSize = (ah->type == kIntArray) ? 2 : 1;
+ oldSize = (FROM_LE_16(ah->type) == kIntArray) ? 2 : 1;
newSize *= (newX + 1) * (newY + 1);
oldSize *= FROM_LE_16(ah->dim1) * FROM_LE_16(ah->dim2);