aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v80he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r--scumm/script_v80he.cpp3
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);
}