Fix potential bug, depended on compiler.

svn-id: r12838
This commit is contained in:
Eugene Sandulenko 2004-02-13 01:01:23 +00:00
parent 3c6114bd9c
commit 7511f1e44e

View File

@ -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() {