diff options
| -rw-r--r-- | scumm/script.cpp | 4 | ||||
| -rw-r--r-- | scumm/script_v6he.cpp | 2 | 
2 files changed, 2 insertions, 4 deletions
| diff --git a/scumm/script.cpp b/scumm/script.cpp index e81797165d..7aea832dfe 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -355,9 +355,7 @@ void ScummEngine::nukeArrays(int script) {  		return;  	for (i = 1; i < _numArray; i++) { -		// HACK: for some reason original has script number greater by one -		// maybe it got increased somewhere else -		if (_arraySlot[i] == script + 1) { +		if (_arraySlot[i] == script) {  			nukeResource(rtString, i);  			_arraySlot[i] = 0;  		} diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index ca81970d47..1bbd189ec8 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1127,7 +1127,7 @@ void ScummEngine_v6he::o6_localizeArray() {  	int slot = pop();  	if (slot < _numArray) { -		_arraySlot[slot] = vm.slot[_currentScript].number; +		_arraySlot[slot] = _currentScript;  	} else {  		warning("o6_localizeArray(%d): array slot out of range", slot);  	} | 
