Fix array read from files in HE72+

svn-id: r16970
This commit is contained in:
Travis Howell 2005-03-02 08:42:42 +00:00
parent 27bcd6e47a
commit e913602100

View File

@ -1618,8 +1618,10 @@ int ScummEngine_v72he::readFileToArray(int slot, int32 size) {
size = _hFileTable[slot].size() - _hFileTable[slot].pos();
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);
return readVar(0);