- fixed: The RNG was not initialized for script calls that did not explicitly specify an RNG by name.

This commit is contained in:
Christoph Oelckers 2016-11-04 09:23:29 +01:00
parent d433fb76c9
commit 157cfe3ab3

View file

@ -55,6 +55,8 @@
#include "v_text.h"
#include "math/cmath.h"
extern FRandom pr_exrandom;
struct FLOP
{
ENamedName Name;
@ -5733,7 +5735,7 @@ FxFunctionCall::FxFunctionCall(FName methodname, FName rngname, FArgumentList *a
: FxExpression(EFX_FunctionCall, pos)
{
MethodName = methodname;
RNG = nullptr;
RNG = &pr_exrandom;
ArgList = args;
if (rngname != NAME_None)
{