aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index abf284b938..b066a8c652 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -3011,7 +3011,9 @@ void ScummEngine_v6::shuffleArray(int num, int minIdx, int maxIdx) {
}
void ScummEngine_v6::o6_shuffle() {
- shuffleArray(fetchScriptWord(), pop(), pop());
+ int a = pop();
+ int b = pop();
+ shuffleArray(fetchScriptWord(), a, b);
}
void ScummEngine_v6::o6_pickVarRandom() {