aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-05 11:06:03 +0000
committerTravis Howell2005-04-05 11:06:03 +0000
commitaeec229615ad2afb36ce7078448f2b1d560ca51f (patch)
treefcb9de99e56c5814ec2049817af17553ab3dd3cc /scumm/script_v6he.cpp
parent23e419969975d0da935498bfbb255448be7b6c2a (diff)
downloadscummvm-rg350-aeec229615ad2afb36ce7078448f2b1d560ca51f.tar.gz
scummvm-rg350-aeec229615ad2afb36ce7078448f2b1d560ca51f.tar.bz2
scummvm-rg350-aeec229615ad2afb36ce7078448f2b1d560ca51f.zip
getScriptSlot() must start from slot 1, required for nukeArrays() in HE games.
svn-id: r17383
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r--scumm/script_v6he.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp
index 3ee0d45dbf..f6b907ca81 100644
--- a/scumm/script_v6he.cpp
+++ b/scumm/script_v6he.cpp
@@ -1179,16 +1179,16 @@ void ScummEngine_v60he::o60_soundOps() {
}
}
-void ScummEngine_v60he::localizeArray(int slot, byte script) {
+void ScummEngine_v60he::localizeArray(int slot, byte scriptSlot) {
if (slot >= _numArray)
error("o60_localizeArrayToScript(%d): array slot out of range", slot);
- _arraySlot[slot] = script;
+ _arraySlot[slot] = scriptSlot;
}
void ScummEngine_v60he::o60_localizeArrayToScript() {
int slot = pop();
- localizeArray(slot, vm.slot[_currentScript].number);
+ localizeArray(slot, _currentScript);
}
void ScummEngine_v60he::o60_seekFilePos() {