aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r--scumm/script_v6he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp
index 55e9d4b447..1bdf5ce8e2 100644
--- a/scumm/script_v6he.cpp
+++ b/scumm/script_v6he.cpp
@@ -1138,7 +1138,7 @@ void ScummEngine_v6he::o6_localizeArray() {
int slot = pop();
if (slot < _numArray) {
- _arraySlot[slot] = _currentScript;
+ _arraySlot[slot] = vm.slot[_currentScript].number;
} else {
warning("o6_localizeArray(%d): array slot out of range", slot);
}