diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v6he.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index c35d9621a6..ce6c4c07c7 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1082,8 +1082,7 @@ int ScummEngine_v6he::readFileToArray(int slot, int32 size) { writeVar(0, 0); - // define size as size-1 because in defineArray it gets incremented - ArrayHeader *ah = defineArray(0, rtCostume, 0, size-1); + ArrayHeader *ah = defineArray(0, rtCostume, 0, size); _hFileTable[slot].read(ah->data, size); return readVar(0); |