aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-08-02 14:27:10 +0000
committerEugene Sandulenko2004-08-02 14:27:10 +0000
commitb127f1882c5807ec1510208f063ab12121a88dbc (patch)
treebc25e9ebc72e5437e0d700edeeb9ca3e723582ba /scumm/script.cpp
parente4c813670f4eb003505d72b6cc0f18f1f4bb1137 (diff)
downloadscummvm-rg350-b127f1882c5807ec1510208f063ab12121a88dbc.tar.gz
scummvm-rg350-b127f1882c5807ec1510208f063ab12121a88dbc.tar.bz2
scummvm-rg350-b127f1882c5807ec1510208f063ab12121a88dbc.zip
Fix regression in HE. It cries for proper fix, though
svn-id: r14438
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;
}