aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-09-09 17:31:44 +0000
committerMax Horn2006-09-09 17:31:44 +0000
commitb3ee442693d6947a99921055add45eea55d5471b (patch)
tree5ad99f82f9902b45e5b9ba069a66dd5ed87e8cc1 /engines
parent723ec240930c004a25fb56897e24cb29ad7c2fef (diff)
downloadscummvm-rg350-b3ee442693d6947a99921055add45eea55d5471b.tar.gz
scummvm-rg350-b3ee442693d6947a99921055add45eea55d5471b.tar.bz2
scummvm-rg350-b3ee442693d6947a99921055add45eea55d5471b.zip
Moved _heV7RoomIntOffsets initialization
svn-id: r23855
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/resource.cpp5
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));
}
}