diff options
author | Travis Howell | 2005-03-02 23:14:06 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-02 23:14:06 +0000 |
commit | bad34c12cd3bdb26d6feb46daccb15cc97dd3783 (patch) | |
tree | 794927fd06d166734e84959aacb56a8ab6ce477f /scumm/script_v72he.cpp | |
parent | b6fdeff330c653685b046c3efcaa2a2c2a6c70c4 (diff) | |
download | scummvm-rg350-bad34c12cd3bdb26d6feb46daccb15cc97dd3783.tar.gz scummvm-rg350-bad34c12cd3bdb26d6feb46daccb15cc97dd3783.tar.bz2 scummvm-rg350-bad34c12cd3bdb26d6feb46daccb15cc97dd3783.zip |
Add two more VARs for HE89+
Minor cleanup
svn-id: r16977
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 8f68dcc986..b8e235f778 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1620,9 +1620,7 @@ int ScummEngine_v72he::readFileToArray(int slot, int32 size) { writeVar(0, 0); ArrayHeader *ah = defineArray(0, kByteArray, 0, 0, 0, size); - size = (FROM_LE_32(ah->dim1end) - FROM_LE_32(ah->dim1start) + 1) * - (FROM_LE_32(ah->dim2end) - FROM_LE_32(ah->dim2start) + 1); - _hFileTable[slot].read(ah->data, size); + _hFileTable[slot].read(ah->data, size + 1); return readVar(0); } |