From ddac7de3fecfea46c15c3f8efa3354b7c5dff8b8 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 24 Mar 2011 04:14:27 +0000 Subject: [PATCH] - Fixed: FxAbs::Resolve() called isNumeric() on the wrong ValueType (which is not initialized until the end of the function). SVN r3171 (trunk) --- 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 364d6916d..effc897df 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -1550,7 +1550,7 @@ FxExpression *FxAbs::Resolve(FCompileContext &ctx) SAFE_RESOLVE(val, ctx); - if (!ValueType.isNumeric()) + if (!val->ValueType.isNumeric()) { ScriptPosition.Message(MSG_ERROR, "Numeric type expected"); delete this;