From 7511f1e44e718ee329b309b37f629f721c677293 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 13 Feb 2004 01:01:23 +0000 Subject: Fix potential bug, depended on compiler. svn-id: r12838 --- scumm/script_v6.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scumm') 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() { -- cgit v1.2.3