aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-08-26 23:30:28 +0000
committerEugene Sandulenko2004-08-26 23:30:28 +0000
commiteb7671f0a76c98766c1629ce4fb8bc418dba28f8 (patch)
tree77c6050d1f58ceb7fb6e18203be16ab2564a3344 /scumm/resource.cpp
parentd71604c20cc563629892828b8affef5c4ab88f48 (diff)
downloadscummvm-rg350-eb7671f0a76c98766c1629ce4fb8bc418dba28f8.tar.gz
scummvm-rg350-eb7671f0a76c98766c1629ce4fb8bc418dba28f8.tar.bz2
scummvm-rg350-eb7671f0a76c98766c1629ce4fb8bc418dba28f8.zip
Add another variable which improves readability.
svn-id: r14791
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index cd2eab1725..0b542b9d91 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -2335,7 +2335,7 @@ void ScummEngine::readMAXS(int blockSize) {
error("MAXS block of size %d not supported, please report", blockSize);
_numVariables = _fileHandle.readUint16LE();
_fileHandle.readUint16LE();
- _numBitVariables = _fileHandle.readUint16LE();
+ _numBitVariables = _numRoomVariables = _fileHandle.readUint16LE();
_numLocalObjects = _fileHandle.readUint16LE();
_numArray = _fileHandle.readUint16LE();
_fileHandle.readUint16LE();
@@ -2429,7 +2429,7 @@ void ScummEngine::allocateArrays() {
_inventory = (uint16 *)calloc(_numInventory, sizeof(uint16));
_verbs = (VerbSlot *)calloc(_numVerbs, sizeof(VerbSlot));
_objs = (ObjectData *)calloc(_numLocalObjects, sizeof(ObjectData));
- _roomVars = (int32 *)calloc(_numBitVariables, sizeof(int32));
+ _roomVars = (int32 *)calloc(_numRoomVariables, sizeof(int32));
_scummVars = (int32 *)calloc(_numVariables, sizeof(int32));
_bitVars = (byte *)calloc(_numBitVariables >> 3, 1);
_images = (uint16 *)calloc(_numImages, sizeof(uint16));