mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +00:00
Fix array read from files in HE72+
svn-id: r16970
This commit is contained in:
parent
27bcd6e47a
commit
e913602100
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user