aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-08-02 05:09:53 +0000
committerTravis Howell2004-08-02 05:09:53 +0000
commitc5446494b848c5cb3ede7a6b17f5c85efa6040ad (patch)
treeb87a9b833e8099d7d7eff66588049dc4cf18f1e9 /scumm/resource.cpp
parent6214ae34246552105da50d9f3a468bef209c65d8 (diff)
downloadscummvm-rg350-c5446494b848c5cb3ede7a6b17f5c85efa6040ad.tar.gz
scummvm-rg350-c5446494b848c5cb3ede7a6b17f5c85efa6040ad.tar.bz2
scummvm-rg350-c5446494b848c5cb3ede7a6b17f5c85efa6040ad.zip
Should have limited that to HE games only.
svn-id: r14430
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index f9529c75a3..681cab7afe 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -2406,7 +2406,8 @@ void ScummEngine::allocateArrays() {
_scummVars = (int32 *)calloc(_numVariables, sizeof(int32));
_bitVars = (byte *)calloc(_numBitVariables >> 3, 1);
_images = (uint16 *)calloc(_numImages, sizeof(uint16));
- _arraySlot = (byte *)calloc(_numArray, 1);
+ if (_features & GF_HUMONGOUS)
+ _arraySlot = (byte *)calloc(_numArray, 1);
allocResTypeData(rtCostume, (_features & GF_NEW_COSTUMES) ? MKID('AKOS') : MKID('COST'),
_numCostumes, "costume", 1);