1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 02:15:32 +00:00

scripts: recognize '+' also as a unary operator

it fixes the armor sorter in "Blades safe house.esp"
This commit is contained in:
Emmanuel Anne 2015-09-25 14:18:08 +02:00
parent caa119f13c
commit dace7ab706

View file

@ -650,8 +650,13 @@ namespace Compiler
mOperators.push_back ('m');
mTokenLoc = loc;
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 (mNextOperand)