SAGA2: Fix _numEntries
This commit is contained in:
parent
53d520e2cf
commit
3cb251421b
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ hResource::hResource(char *resname, char *extname, const char desc[]) {
|
||||||
|
|
||||||
// allocate buffers for root, groups and data
|
// allocate buffers for root, groups and data
|
||||||
|
|
||||||
_numEntries = origin.size;
|
_numEntries = origin.size / resourceSize;
|
||||||
|
|
||||||
_base = new hResEntry[_numEntries]();
|
_base = new hResEntry[_numEntries]();
|
||||||
tableSize = origin.offset - _firstGroupOffset - sizeof(uint32);
|
tableSize = origin.offset - _firstGroupOffset - sizeof(uint32);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue