mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 06:47:59 +03:00
removed a redundant else and made unary + work also in the console
(cherry picked from commit ae54f34f25
)
This commit is contained in:
parent
890405bdb1
commit
c5235ea794
2 changed files with 5 additions and 3 deletions
|
@ -555,7 +555,7 @@ namespace Compiler
|
|||
}
|
||||
|
||||
if (mAllowExpression && mState==BeginState &&
|
||||
(code==Scanner::S_open || code==Scanner::S_minus))
|
||||
(code==Scanner::S_open || code==Scanner::S_minus || code==Scanner::S_plus))
|
||||
{
|
||||
scanner.putbackSpecial (code, loc);
|
||||
parseExpression (scanner, loc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue