diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index 2ebea2a468..ea5c5005e5 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -1742,7 +1742,7 @@ ExpEmit FxCompareEq::Emit(VMFunctionBuilder *build) } assert(!op1.Konst); - ExpEmit to(build, op1.RegType); + ExpEmit to(build, REGT_INT); instr = op1.RegType == REGT_INT ? OP_EQ_R : op1.RegType == REGT_FLOAT ? OP_EQF_R :