diff options
author | Travis Howell | 2004-12-19 11:02:14 +0000 |
---|---|---|
committer | Travis Howell | 2004-12-19 11:02:14 +0000 |
commit | 739828391e1d6944ff97473e585de4c0550372d2 (patch) | |
tree | cf826732a35c49ebb41a5dafc01e4c62fef5ef49 | |
parent | 9e4f76b180b2f369b238d618e7aebc57010f6a41 (diff) | |
download | scummvm-rg350-739828391e1d6944ff97473e585de4c0550372d2.tar.gz scummvm-rg350-739828391e1d6944ff97473e585de4c0550372d2.tar.bz2 scummvm-rg350-739828391e1d6944ff97473e585de4c0550372d2.zip |
Correct range
svn-id: r16129
-rw-r--r-- | scumm/script_v80he.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 4070a27d98..5842914e14 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -419,9 +419,10 @@ void ScummEngine_v80he::o80_getSoundVar() { // Checks sound variable int var = pop(); int snd = pop(); + int rnd = _rnd.getRandomNumberRng(1, 3); checkRange(27, 0, var, "Illegal sound variable %d"); - push (_rnd.getRandomNumber(3)); + push (rnd); debug(1,"o80_getSoundVar stub (snd %d, var %d)", snd, var); } |