mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
DIRECTOR: LINGO: Set range of b_random(i) as [1, i]
This commit is contained in:
parent
31c8e09540
commit
f08d512bff
@ -408,7 +408,7 @@ void LB::b_random(int nargs) {
|
||||
|
||||
max.toInt();
|
||||
|
||||
res.u.i = g_lingo->_vm->_rnd.getRandomNumber(max.u.i);
|
||||
res.u.i = g_lingo->_vm->_rnd.getRandomNumber(max.u.i - 1) + 1;
|
||||
res.type = INT;
|
||||
|
||||
g_lingo->push(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user