From e4e4336c0df5bb63cfb6ad809f720fef296569e2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 15 Feb 2004 02:47:00 +0000 Subject: Fix crash at fbear end scene svn-id: r12896 --- scumm/script_v6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3