aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-01-27 23:29:29 +0100
committerRenaud G <renaud@rolisteam.org>2017-01-27 23:29:29 +0100
commit64f67b9dfa97d305e091f081132d4768c833f7fd (patch)
tree36e3ffff247348797d2c2c619d021a2870bb4887 /diceparser.cpp
parente0a12f6f7faf1f5207913f2411181d473e546100 (diff)
downloadOneRoll-64f67b9dfa97d305e091f081132d4768c833f7fd.tar.gz
OneRoll-64f67b9dfa97d305e091f081132d4768c833f7fd.zip
-fix math priority.
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index dc18903..8ccffd3 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -767,10 +767,10 @@ bool DiceParser::readOperator(QString& str,ExecutionNode* previous)
node->setNextNode(nodeExecOrChild);
parent->setNextNode(NULL);
}
- else
+ else if(node->getPriority()>=nodeExec->getPriority())
{
- node->setNextNode(nodeExecOrChild->getNextNode());
- nodeExecOrChild->setNextNode(NULL);
+ node->setNextNode(nodeExec->getNextNode());
+ nodeExec->setNextNode(NULL);
}