- Fixed: FxAbs::Resolve() called isNumeric() on the wrong ValueType (which is not initialized until the end of the function).

SVN r3171 (trunk)
This commit is contained in:
Randy Heit 2011-03-24 04:14:27 +00:00
parent 3344fa9f30
commit ddac7de3fe

View file

@ -1550,7 +1550,7 @@ FxExpression *FxAbs::Resolve(FCompileContext &ctx)
SAFE_RESOLVE(val, ctx); SAFE_RESOLVE(val, ctx);
if (!ValueType.isNumeric()) if (!val->ValueType.isNumeric())
{ {
ScriptPosition.Message(MSG_ERROR, "Numeric type expected"); ScriptPosition.Message(MSG_ERROR, "Numeric type expected");
delete this; delete this;