aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 891b308a25..7b7d4098ec 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -353,7 +353,9 @@ void ScummEngine::nukeArrays(int script) {
return;
for (i = 1; i < _numArray; i++) {
- if (_arraySlot[i] == script) {
+ // HACK: for some reason original has script number greater by one
+ // maybe it got increased somewhere else
+ if (_arraySlot[i] == script + 1) {
nukeResource(rtString, i);
_arraySlot[i] = 0;
}