diff options
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index ee1304997c..56db190c82 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -511,9 +511,8 @@ builtIn(pickOne) { } int i; -#if 0 - i = rand() % numParams; -#endif + + i = g_sludge->getRandomSource()->getRandomNumber(numParams - 1); // Return value while (numParams--) { |