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