Fix potential bug, depended on compiler.
svn-id: r12838
This commit is contained in:
parent
3c6114bd9c
commit
7511f1e44e
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue