diff options
Diffstat (limited to 'gob/util.cpp')
-rw-r--r-- | gob/util.cpp | 2 |
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() { |