diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/script_v6.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp index c5841dfaf4..ede32623aa 100644 --- a/engines/scumm/script_v6.cpp +++ b/engines/scumm/script_v6.cpp @@ -1285,7 +1285,7 @@ void ScummEngine_v6::o6_loadRoomWithEgo() { void ScummEngine_v6::o6_getRandomNumber() { int rnd; - rnd = _rnd.getRandomNumber(pop()); + rnd = _rnd.getRandomNumber(ABS(pop())); if (VAR_RANDOM_NR != 0xFF) VAR(VAR_RANDOM_NR) = rnd; push(rnd); |