Should have limited that to HE games only.

svn-id: r14430
This commit is contained in:
Travis Howell 2004-08-02 05:09:53 +00:00
parent 6214ae3424
commit c5446494b8
3 changed files with 5 additions and 3 deletions

View File

@ -2406,6 +2406,7 @@ void ScummEngine::allocateArrays() {
_scummVars = (int32 *)calloc(_numVariables, sizeof(int32));
_bitVars = (byte *)calloc(_numBitVariables >> 3, 1);
_images = (uint16 *)calloc(_numImages, sizeof(uint16));
if (_features & GF_HUMONGOUS)
_arraySlot = (byte *)calloc(_numArray, 1);
allocResTypeData(rtCostume, (_features & GF_NEW_COSTUMES) ? MKID('AKOS') : MKID('COST'),

View File

@ -349,7 +349,7 @@ void ScummEngine::updateScriptPtr() {
void ScummEngine::nukeArrays(int script) {
int i;
if (!_heversion || !script)
if (!(_features & GF_HUMONGOUS) || !script)
return;
for (i = 1; i < _numArray; i++) {

View File

@ -465,6 +465,7 @@ void ScummEngine_v6::nukeArray(int a) {
if (data)
nukeResource(rtString, data);
if (_features & GF_HUMONGOUS)
_arraySlot[a] = 0;
writeVar(a, 0);