diff options
| -rw-r--r-- | scumm/script_v6.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 3ef3b59cba..564ab13bc2 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -3025,7 +3025,7 @@ void ScummEngine_v6::o6_pickVarRandom() { int value = fetchScriptWord(); if (readVar(value) == 0) { - defineArray(value, 5, 0, num); + defineArray(value, 5, 0, num + 1); if (num > 0) { int16 counter = 0; do { |
