aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-03-11 09:43:00 +0000
committerTravis Howell2006-03-11 09:43:00 +0000
commitbeb0c9e2971752ece466cb4ebc84d4f8b95507ad (patch)
treebf17942490ae46bcd4452612a94957cbf6c500e8 /engines
parent985ab14c79c9c88c1235d94db46e3e7849444a34 (diff)
downloadscummvm-rg350-beb0c9e2971752ece466cb4ebc84d4f8b95507ad.tar.gz
scummvm-rg350-beb0c9e2971752ece466cb4ebc84d4f8b95507ad.tar.bz2
scummvm-rg350-beb0c9e2971752ece466cb4ebc84d4f8b95507ad.zip
Fix endian issue in getArrayDim()
svn-id: r21216
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/script_v90he.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp
index a5d45422dd..3759cf7b88 100644
--- a/engines/scumm/he/script_v90he.cpp
+++ b/engines/scumm/he/script_v90he.cpp
@@ -2215,16 +2215,16 @@ void ScummEngine_v90he::getArrayDim(int array, int *dim2start, int *dim2end, int
ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
assert(ah);
if (dim2start && *dim2start == -1) {
- *dim2start = ah->dim2start;
+ *dim2start = FROM_LE_32(ah->dim2start);
}
if (dim2end && *dim2end == -1) {
- *dim2end = ah->dim2end;
+ *dim2end = FROM_LE_32(ah->dim2end);
}
if (dim1start && *dim1start == -1) {
- *dim1start = ah->dim1start;
+ *dim1start = FROM_LE_32(ah->dim1start);
}
if (dim1end && *dim1end == -1) {
- *dim1end = ah->dim1end;
+ *dim1end = FROM_LE_32(ah->dim1end);
}
}