1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 22:45:34 +00:00

Ignore stray explicit references for names in expressions

This commit is contained in:
Capostrophic 2019-02-26 17:22:57 +03:00
parent cc855e065a
commit 9bc360267b

View file

@ -276,12 +276,20 @@ namespace Compiler
Scanner& scanner) Scanner& scanner)
{ {
if (!mExplicit.empty()) if (!mExplicit.empty())
{
if (!mRefOp)
{ {
if (mMemberOp && handleMemberAccess (name)) if (mMemberOp && handleMemberAccess (name))
return true; return true;
return Parser::parseName (name, loc, scanner); return Parser::parseName (name, loc, scanner);
} }
else
{
mExplicit.clear();
getErrorHandler().warning ("Ignoring stray explicit reference", loc);
}
}
mFirst = false; mFirst = false;