mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed: The RNG was not initialized for script calls that did not explicitly specify an RNG by name.
This commit is contained in:
parent
d433fb76c9
commit
157cfe3ab3
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue