diff options
| author | 2016-11-04 11:34:56 +0100 | |
|---|---|---|
| committer | 2016-11-04 11:34:56 +0100 | |
| commit | 4d9a0daf0d6f33af72a5fb11150bad22768cae52 (patch) | |
| tree | 2ac7237c3869225d477fde8070597ddf3670d182 | |
| parent | dab42401e3d483a90d2bd5e7442f601c99a32742 (diff) | |
| download | OneRoll-4d9a0daf0d6f33af72a5fb11150bad22768cae52.tar.gz OneRoll-4d9a0daf0d6f33af72a5fb11150bad22768cae52.zip | |
-fix computation while there is arithmetic operator after if operator.
| -rw-r--r-- | diceparser.cpp | 2 |
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; } } } |