mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 16:49:55 +00:00
scripts: recognize '+' also as a unary operator
it fixes the armor sorter in "Blades safe house.esp"
(cherry picked from commit dace7ab706
)
This commit is contained in:
parent
69e6328507
commit
890405bdb1
1 changed files with 5 additions and 0 deletions
|
@ -650,8 +650,13 @@ namespace Compiler
|
||||||
mOperators.push_back ('m');
|
mOperators.push_back ('m');
|
||||||
mTokenLoc = loc;
|
mTokenLoc = loc;
|
||||||
return true;
|
return true;
|
||||||
|
} else if (code ==Scanner::S_plus && mNextOperand) {
|
||||||
|
// Also unary, but +, just ignore it
|
||||||
|
mTokenLoc = loc;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (code==Scanner::S_open)
|
if (code==Scanner::S_open)
|
||||||
{
|
{
|
||||||
if (mNextOperand)
|
if (mNextOperand)
|
||||||
|
|
Loading…
Reference in a new issue