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;