mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
Should have limited that to HE games only.
svn-id: r14430
This commit is contained in:
parent
6214ae3424
commit
c5446494b8
@ -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);
|
||||
|
@ -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++) {
|
||||
|
@ -465,7 +465,8 @@ void ScummEngine_v6::nukeArray(int a) {
|
||||
|
||||
if (data)
|
||||
nukeResource(rtString, data);
|
||||
_arraySlot[a] = 0;
|
||||
if (_features & GF_HUMONGOUS)
|
||||
_arraySlot[a] = 0;
|
||||
|
||||
writeVar(a, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user