SAGA2: Fix _numEntries

This commit is contained in:
a/ 2021-05-29 13:30:26 +09:00 committed by Eugene Sandulenko
parent 53d520e2cf
commit 3cb251421b
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -467,7 +467,7 @@ hResource::hResource(char *resname, char *extname, const char desc[]) {
// allocate buffers for root, groups and data
_numEntries = origin.size;
_numEntries = origin.size / resourceSize;
_base = new hResEntry[_numEntries]();
tableSize = origin.offset - _firstGroupOffset - sizeof(uint32);