From 91680a1e8d4b235c542918a753cef8d3a8f96e27 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Jun 2017 18:55:32 +0200 Subject: [PATCH] - fixed incorrect number of returns in SetRandomSeed. --- 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 0613b91bd..f1d30d7c4 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -5975,7 +5975,7 @@ ExpEmit FxRandomSeed::Emit(VMFunctionBuilder *build) build->Emit(OP_PARAM, 0, REGT_POINTER | REGT_KONST, build->GetConstantAddress(rng)); EmitParameter(build, seed, ScriptPosition); - build->Emit(opcode, build->GetConstantAddress(callfunc), 2, 1); + build->Emit(opcode, build->GetConstantAddress(callfunc), 2, 0); ExpEmit call; if (EmitTail) call.Final = true;