aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/objects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/objects.cpp')
-rw-r--r--engines/parallaction/objects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp
index 30ce5b77a9..283802ef45 100644
--- a/engines/parallaction/objects.cpp
+++ b/engines/parallaction/objects.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "parallaction/parallaction.h"
#include "parallaction/objects.h"
#include "parallaction/parser.h"
@@ -287,7 +288,7 @@ int16 ScriptVar::getRValue() {
}
if (_flags & kParaRandom) {
- return (rand() * _value) / 32767;
+ return (_vm->_rnd.getRandomNumber(65536) * _value) / 32767;
}
error("Parameter is not an r-value");