From dace7ab7060c47155d70170a091b465c8b3b2688 Mon Sep 17 00:00:00 2001 From: Emmanuel Anne Date: Fri, 25 Sep 2015 14:18:08 +0200 Subject: [PATCH] scripts: recognize '+' also as a unary operator it fixes the armor sorter in "Blades safe house.esp" --- components/compiler/exprparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/compiler/exprparser.cpp b/components/compiler/exprparser.cpp index b588b6196..53b24eab6 100644 --- a/components/compiler/exprparser.cpp +++ b/components/compiler/exprparser.cpp @@ -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)