diff options
author | Eugene Sandulenko | 2004-02-13 01:01:23 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-02-13 01:01:23 +0000 |
commit | 7511f1e44e718ee329b309b37f629f721c677293 (patch) | |
tree | 42c68fa8c35e26893eadb8831281f8de92bbb7b6 /scumm/script_v6.cpp | |
parent | 3c6114bd9cf2ff5655879688ad06a19e5bef3a9f (diff) | |
download | scummvm-rg350-7511f1e44e718ee329b309b37f629f721c677293.tar.gz scummvm-rg350-7511f1e44e718ee329b309b37f629f721c677293.tar.bz2 scummvm-rg350-7511f1e44e718ee329b309b37f629f721c677293.zip |
Fix potential bug, depended on compiler.
svn-id: r12838
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 4 |
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() { |