aboutsummaryrefslogtreecommitdiff
path: root/gob/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gob/util.cpp')
-rw-r--r--gob/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gob/util.cpp b/gob/util.cpp
index ad5198a693..9596d38215 100644
--- a/gob/util.cpp
+++ b/gob/util.cpp
@@ -126,7 +126,7 @@ int16 util_checkKey(void) {
}
int16 util_getRandom(int16 max) {
- return ((int32)rand() * max) / (RAND_MAX + 1);
+ return _vm->_rnd.getRandomNumber(max - 1);
}
void util_processInput() {