From 6398c2764635b454a72dace38d4a46910a6dcd7e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 17 Nov 2018 10:06:01 +0100 Subject: [PATCH] - fixed RNG setup in FxRandom. --- src/scripting/backend/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 50ecd1040..cda7ec4fa 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -5453,7 +5453,7 @@ FxRandom::FxRandom(EFxType type, FRandom * r, const FScriptPosition &pos) // //========================================================================== FxRandom::FxRandom(FRandom * r, FxExpression *mi, FxExpression *ma, const FScriptPosition &pos, bool nowarn) - : FxRandom(EFX_Random, rng, pos) + : FxRandom(EFX_Random, r, pos) { assert(mi && ma); min = new FxIntCast(mi, nowarn);