aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2004-02-15 02:47:00 +0000
committerEugene Sandulenko2004-02-15 02:47:00 +0000
commite4e4336c0df5bb63cfb6ad809f720fef296569e2 (patch)
tree7716b4478b286e510d17fbfbee4c4474d1d9aa77 /scumm
parentbe218fa982972c25bfca60d5893a63adeaa1f06b (diff)
downloadscummvm-rg350-e4e4336c0df5bb63cfb6ad809f720fef296569e2.tar.gz
scummvm-rg350-e4e4336c0df5bb63cfb6ad809f720fef296569e2.tar.bz2
scummvm-rg350-e4e4336c0df5bb63cfb6ad809f720fef296569e2.zip
Fix crash at fbear end scene
svn-id: r12896
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6.cpp2
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 {