From cb0fd5967fd8e8f1dbe78b124db52445b458b8b4 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 18 Feb 2016 22:53:18 -0600 Subject: [PATCH] Oops. Had FxCastStateToBool backwards. --- src/thingdef/thingdef_expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index 76919695f..714cb6c3e 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -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;