From b3ee442693d6947a99921055add45eea55d5471b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 9 Sep 2006 17:31:44 +0000 Subject: Moved _heV7RoomIntOffsets initialization svn-id: r23855 --- engines/scumm/resource.cpp | 5 ++--- 1 file 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)); } } -- cgit v1.2.3