mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Oops. Had FxCastStateToBool backwards.
This commit is contained in:
parent
a399f40e5f
commit
cb0fd5967f
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ ExpEmit FxCastStateToBool::Emit(VMFunctionBuilder *build)
|
|||
|
||||
// If from is NULL, produce 0. Otherwise, produce 1.
|
||||
build->Emit(OP_LI, to.RegNum, 0);
|
||||
build->Emit(OP_EQA_K, 0, from.RegNum, build->GetConstantAddress(NULL, ATAG_GENERIC));
|
||||
build->Emit(OP_EQA_K, 1, from.RegNum, build->GetConstantAddress(NULL, ATAG_GENERIC));
|
||||
build->Emit(OP_JMP, 1);
|
||||
build->Emit(OP_LI, to.RegNum, 1);
|
||||
return to;
|
||||
|
|
Loading…
Reference in a new issue