Added better error message for invalid class/struct member

https://forum.zdoom.org/viewtopic.php?t=57959
This commit is contained in:
alexey.lysiuk 2017-09-24 10:25:05 +03:00
parent cfc1bfd1e2
commit 48f9e53580

View file

@ -6464,6 +6464,12 @@ FxExpression *FxMemberIdentifier::Resolve(FCompileContext& ctx)
}
}
}
else
{
ScriptPosition.Message(MSG_ERROR, "%s is not a member of %s", Identifier.GetChars(), ccls->TypeName.GetChars());
delete this;
return nullptr;
}
}
}