- 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
1 changed files with 1 additions and 1 deletions

View File

@ -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;