- missed one OP_RESULT.

This commit is contained in:
Christoph Oelckers 2018-11-18 10:09:29 +01:00 committed by drfrag
parent 6727301330
commit b33fd19fa2

View file

@ -5617,7 +5617,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