From 739828391e1d6944ff97473e585de4c0550372d2 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 19 Dec 2004 11:02:14 +0000 Subject: Correct range svn-id: r16129 --- scumm/script_v80he.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3