diff options
author | Max Horn | 2011-05-17 12:28:39 +0200 |
---|---|---|
committer | Max Horn | 2011-05-17 12:28:39 +0200 |
commit | a3c326456110f9f5b71ff3a91bbad15b5232c5d7 (patch) | |
tree | 1eaffc83aec536697b120bda0b8223834691d6f0 /engines | |
parent | 29851abaea1a693f170f726aaa73d50af24b4761 (diff) | |
download | scummvm-rg350-a3c326456110f9f5b71ff3a91bbad15b5232c5d7.tar.gz scummvm-rg350-a3c326456110f9f5b71ff3a91bbad15b5232c5d7.tar.bz2 scummvm-rg350-a3c326456110f9f5b71ff3a91bbad15b5232c5d7.zip |
TOON: Use RandomSource instead of rand()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/toon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index d441e59d4f..44c747c4c4 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -2855,7 +2855,7 @@ void ToonEngine::playSFX(int32 id, int32 volume) { } void ToonEngine::playSoundWrong() { - _audioManager->playSFX(rand() & 7, 128, true); + _audioManager->playSFX(randRange(0,7), 128, true); } void ToonEngine::getTextPosition(int32 characterId, int32 *retX, int32 *retY) { |