1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:15:38 +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

@ -277,10 +277,18 @@ namespace Compiler
{
if (!mExplicit.empty())
{
if (mMemberOp && handleMemberAccess (name))
return true;
if (!mRefOp)
{
if (mMemberOp && handleMemberAccess (name))
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;