diff options
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r-- | scumm/script_v6he.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index db9fa58578..9b7e684084 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1153,15 +1153,18 @@ void ScummEngine_v6he::o6_soundOps() { } } -void ScummEngine_v6he::o6_localizeArray() { - int slot = pop(); - +void ScummEngine_v6he::localizeArray(int slot, int script) { if (slot >= _numArray) error("o6_localizeArray(%d): array slot out of range", slot); _arraySlot[slot] = vm.slot[_currentScript].number; } +void ScummEngine_v6he::o6_localizeArray() { + int slot = pop(); + localizeArray(slot, vm.slot[_currentScript].number); +} + void ScummEngine_v6he::o6_seekFilePos() { int mode, offset, slot; mode = pop(); |