mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
scripts: recognize '+' also as a unary operator
it fixes the armor sorter in "Blades safe house.esp"
This commit is contained in:
parent
caa119f13c
commit
dace7ab706
@ -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…
x
Reference in New Issue
Block a user