diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index b746e322a..f58fd7719 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -5609,7 +5609,6 @@ ExpEmit FxRandomPick::Emit(VMFunctionBuilder *build) emitters.AddReturn(REGT_INT); auto resultreg = emitters.EmitCall(build); - build->Emit(OP_RESULT, 0, REGT_INT, resultreg.RegNum); build->Emit(OP_IJMP, resultreg.RegNum, choices.Size()); // Free the result register now. The simple code generation algorithm should