aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-04-29 16:12:16 +0200
committerRenaud G <renaud@rolisteam.org>2017-04-29 16:12:16 +0200
commite1b01fe2cb5d5605f05f01521cd1074c6f57ff37 (patch)
tree1b5c17ffcfd60256bcc38d25d9eac750a95b7457 /diceparser.cpp
parent9d4feb28fdfdf9635a87628cb4b984fbccb5ee5b (diff)
parent29c80721f858f84bb737a10e7cd012e4a9795399 (diff)
downloadOneRoll-e1b01fe2cb5d5605f05f01521cd1074c6f57ff37.tar.gz
OneRoll-e1b01fe2cb5d5605f05f01521cd1074c6f57ff37.zip
Merge branch 'master' of github.com:Rolisteam/DiceParser
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 31bcf59..796850f 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -644,6 +644,11 @@ bool DiceParser::readDice(QString& str,ExecutionNode* & node)
// qint64 face = abs(num - end);
//qDebug() << face << end;
DiceRollerNode* drNode = new DiceRollerNode(max,min);
+
+ if(hasOp)
+ {
+ drNode->setOperator(op);
+ }
node = drNode;
ExecutionNode* current = drNode;
while(readOption(str,current))