aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-11-04 11:34:56 +0100
committerRenaud G <renaud@rolisteam.org>2016-11-04 11:34:56 +0100
commit4d9a0daf0d6f33af72a5fb11150bad22768cae52 (patch)
tree2ac7237c3869225d477fde8070597ddf3670d182 /diceparser.cpp
parentdab42401e3d483a90d2bd5e7442f601c99a32742 (diff)
downloadOneRoll-4d9a0daf0d6f33af72a5fb11150bad22768cae52.tar.gz
OneRoll-4d9a0daf0d6f33af72a5fb11150bad22768cae52.zip
-fix computation while there is arithmetic operator after if operator.
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 87a972c..39c9b98 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -1002,6 +1002,8 @@ bool DiceParser::readOption(QString& str,ExecutionNode* previous)//,
nodeif->setInstructionFalse(falseNode);
nodeif->setValidator(validator);
previous->setNextNode(nodeif);
+ node = nodeif;
+ found = true;
}
}
}