From ac251cfe80f5036ddb339715c1713c7ca0b358d2 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 26 Oct 2012 20:27:49 +0000 Subject: [PATCH] - Fixed: FxCompareEq::Emit()'s output must be in an integer register. SVN r3910 (scripting) --- 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 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 :