From 10a2c0f58a85945273727c1f839e68d5341961d8 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 21 Dec 2014 22:03:16 -0600 Subject: [PATCH] Fixed: FxIntCast::Emit() should free the source register --- src/thingdef/thingdef_expression.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index f95bfcdaf..60f24ad95 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -440,6 +440,7 @@ ExpEmit FxIntCast::Emit(VMFunctionBuilder *build) ExpEmit from = basex->Emit(build); assert(!from.Konst); assert(basex->ValueType == VAL_Float); + from.Free(build); ExpEmit to(build, REGT_INT); build->Emit(OP_CAST, to.RegNum, from.RegNum, CAST_F2I); return to;