mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
naked expressions beginning with the member operator were allowed erroneously outside of the console (Fixes issue #2971)
This commit is contained in:
parent
296ad8424e
commit
565922f9ad
@ -512,7 +512,7 @@ namespace Compiler
|
||||
return true;
|
||||
}
|
||||
|
||||
if (code==Scanner::S_member && mState==PotentialExplicitState)
|
||||
if (code==Scanner::S_member && mState==PotentialExplicitState && mAllowExpression)
|
||||
{
|
||||
mState = MemberState;
|
||||
parseExpression (scanner, loc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user