diff options
| author | 2016-09-08 00:59:54 +0200 | |
|---|---|---|
| committer | 2016-09-08 00:59:54 +0200 | |
| commit | 1b17fd808a93b41194f42d93ba85377e58f5b734 (patch) | |
| tree | 068ccb794a5bf66654ece0f8178d7c7544f909dc | |
| parent | 686cd8f0845386b6584c433dafc891ac5d9a826c (diff) | |
| download | OneRoll-1b17fd808a93b41194f42d93ba85377e58f5b734.tar.gz OneRoll-1b17fd808a93b41194f42d93ba85377e58f5b734.zip | |
-fix crash when if is false.
| -rw-r--r-- | diceparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 4575bf5..21277c3 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -979,8 +979,8 @@ bool DiceParser::readOption(QString& str,ExecutionNode* previous)//, Validator* validator = m_parsingToolbox->readCompositeValidator(str); if(NULL!=validator) { - ExecutionNode* trueNode; - ExecutionNode* falseNode; + ExecutionNode* trueNode = NULL; + ExecutionNode* falseNode = NULL; if(readIfInstruction(str,trueNode,falseNode)) { nodeif->setInstructionTrue(trueNode); |