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:
parent
cc855e065a
commit
9bc360267b
1 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue