aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorJames Brown2003-01-12 08:32:44 +0000
committerJames Brown2003-01-12 08:32:44 +0000
commitdaa5397e02d5344bb2f956ac74cf0c1d7f64737a (patch)
tree2c8cf5769a31a698346c38eedb669726c6f901c8 /scumm/resource.cpp
parentef9a8d07146d9431e39db7521c3d009cdc239ffc (diff)
downloadscummvm-rg350-daa5397e02d5344bb2f956ac74cf0c1d7f64737a.tar.gz
scummvm-rg350-daa5397e02d5344bb2f956ac74cf0c1d7f64737a.tar.bz2
scummvm-rg350-daa5397e02d5344bb2f956ac74cf0c1d7f64737a.zip
Small fix - _numLocalObjects is a 1-based array, so don't go reading bad memory :P
svn-id: r6417
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 3720763621..c23268775f 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -1655,6 +1655,7 @@ void Scumm::allocateArrays()
_inventory = (uint16 *)calloc(_numInventory, sizeof(uint16));
_verbs = (VerbSlot *)calloc(_numVerbs, sizeof(VerbSlot));
_objs = (ObjectData *)calloc(_numLocalObjects, sizeof(ObjectData));
+ printf("Allocated %d space in numObjects\n", _numLocalObjects);
_vars = (int32 *)calloc(_numVariables, sizeof(int32));
_bitVars = (byte *)calloc(_numBitVariables >> 3, 1);