diff options
Diffstat (limited to 'engines/scumm/resource.cpp')
-rw-r--r-- | engines/scumm/resource.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp index c8a886733b..d71adec75e 100644 --- a/engines/scumm/resource.cpp +++ b/engines/scumm/resource.cpp @@ -558,10 +558,8 @@ void ScummEngine::allocResTypeData(int id, uint32 tag, int num, const char *name if (_game.heversion >= 70) { res.globsize[id] = (uint32 *)calloc(num, sizeof(uint32)); - - if (id == rtRoom) - _heV7RoomIntOffsets = (uint32 *)calloc(num, sizeof(uint32)); } + } void ScummEngine::loadCharset(int no) { @@ -1299,6 +1297,7 @@ void ScummEngine::allocateArrays() { if (_game.heversion >= 70) { allocResTypeData(rtSpoolBuffer, 0, 9, "spool buffer", 1); + _heV7RoomIntOffsets = (uint32 *)calloc(_numRooms, sizeof(uint32)); } } |