- missed one OP_RESULT.

This commit is contained in:
Christoph Oelckers 2018-11-18 10:09:29 +01:00
parent fe0a341e0c
commit 28db04b501

View file

@ -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