diff options
| -rw-r--r-- | node/variablenode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node/variablenode.cpp b/node/variablenode.cpp index 0cd1733..ce8af29 100644 --- a/node/variablenode.cpp +++ b/node/variablenode.cpp @@ -19,12 +19,12 @@ void VariableNode::run(ExecutionNode* previous) m_result= result->getCopy(); auto diceResult= dynamic_cast<DiceResult*>(result); - if(nullptr == diceResult) - return; - - for(auto& die : diceResult->getResultList()) + if(nullptr != diceResult) { - die->setDisplayed(false); + for(auto& die : diceResult->getResultList()) + { + die->setDisplayed(false); + } } if(nullptr != m_nextNode) |