diff options
author | Travis Howell | 2008-01-03 03:34:25 +0000 |
---|---|---|
committer | Travis Howell | 2008-01-03 03:34:25 +0000 |
commit | 6c6a2a57b512189daf9a95be3f3a363c9170f62c (patch) | |
tree | c059af20d035d6c66a72b47555c130cdc26141b4 | |
parent | 639929a09e166f7a55a3cfcfa94e56d4e9bd1337 (diff) | |
download | scummvm-rg350-6c6a2a57b512189daf9a95be3f3a363c9170f62c.tar.gz scummvm-rg350-6c6a2a57b512189daf9a95be3f3a363c9170f62c.tar.bz2 scummvm-rg350-6c6a2a57b512189daf9a95be3f3a363c9170f62c.zip |
Fix endian issue in checkArrayLimits().
svn-id: r30178
-rw-r--r-- | engines/scumm/he/script_v72he.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 1ac5c80ab7..222b3e5a1c 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -1965,7 +1965,7 @@ void ScummEngine_v72he::checkArrayLimits(int array, int dim2start, int dim2end, ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array)); assert(ah); if ((int)FROM_LE_32(ah->dim2start) > dim2start || (int)FROM_LE_32(ah->dim2end) < dim2end || (int)FROM_LE_32(ah->dim1start) > dim1start || (int)FROM_LE_32(ah->dim1end) < dim1end) { - error("Invalid array access (%d,%d,%d,%d) limit (%d,%d,%d,%d)", dim2start, dim2end, dim1start, dim1end, ah->dim2start, ah->dim2end, ah->dim1start, ah->dim1end); + error("Invalid array access (%d,%d,%d,%d) limit (%d,%d,%d,%d)", dim2start, dim2end, dim1start, dim1end, FROM_LE_32(ah->dim2start), FROM_LE_32(ah->dim2end), FROM_LE_32(ah->dim1start), FROM_LE_32(ah->dim1end)); } } |