diff options
-rw-r--r-- | engines/agi/agi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 3cf28b1def..4de8d46d05 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -1000,7 +1000,7 @@ public: int getSelection(int type); bool waitAnyKeyChoice(); void waitAnyKey(bool anim = false); - int rnd(int hi) { return (rand() % hi + 1); } + int rnd(int hi) { return (_rnd->getRandomNumber(hi) + 1); } // Text void drawStr(int row, int col, int attr, const char *buffer); |