aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-09-16 14:31:16 +0000
committerTravis Howell2004-09-16 14:31:16 +0000
commitcf717603916aae5c420055dde35f74660803c95e (patch)
treeb6870799b1d9441b62f61a8aa845a96fef276709 /scumm/script_v6.cpp
parent0a320ac7aff085a791c6b865fcc23c5659a2b881 (diff)
downloadscummvm-rg350-cf717603916aae5c420055dde35f74660803c95e.tar.gz
scummvm-rg350-cf717603916aae5c420055dde35f74660803c95e.tar.bz2
scummvm-rg350-cf717603916aae5c420055dde35f74660803c95e.zip
No longer required.
svn-id: r15141
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 142e398883..af5c4457a4 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -3002,7 +3002,7 @@ void ScummEngine_v6::o6_pickVarRandom() {
int value = fetchScriptWord();
if (readVar(value) == 0) {
- defineArray(value, kIntArray, 0, num + 1);
+ defineArray(value, kIntArray, 0, num);
if (num > 0) {
int16 counter = 0;
do {
@@ -3010,7 +3010,7 @@ void ScummEngine_v6::o6_pickVarRandom() {
} while (++counter < num);
}
- shuffleArray(value, 1, num-1);
+ shuffleArray(value, 1, num);
writeArray(value, 0, 0, 2);
push(readArray(value, 0, 1));
return;