diff options
author | James Brown | 2003-01-12 08:32:44 +0000 |
---|---|---|
committer | James Brown | 2003-01-12 08:32:44 +0000 |
commit | daa5397e02d5344bb2f956ac74cf0c1d7f64737a (patch) | |
tree | 2c8cf5769a31a698346c38eedb669726c6f901c8 /scumm/resource.cpp | |
parent | ef9a8d07146d9431e39db7521c3d009cdc239ffc (diff) | |
download | scummvm-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.cpp | 1 |
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); |