aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-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 f1c3079f15..4387b1f94c 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -3028,8 +3028,8 @@ void ScummEngine_v6::o6_pickVarRandom() {
}
if (var_A-1 <= num) {
- int16 var_2 = readArray(value, 0, var_A - 1);
- shuffleArray(value, 1, num - 1);
+ int16 var_2 = readArray(value, 0, num - 1);
+ shuffleArray(value, 1, var_A - 1);
if (readArray(value, 0, 1) == var_2) {
num = 2;
} else {