diff options
| author | 2022-01-22 12:59:01 +0100 | |
|---|---|---|
| committer | 2022-01-22 12:59:01 +0100 | |
| commit | f426444c1e2481521856ba244a0105025d58405d (patch) | |
| tree | 5a53bb3a67bb9dc20c1576ba73092d8d05d3bbe2 /node/variablenode.cpp | |
| parent | 262cb9afb8338a76e126dea672a3fda53d8d1dad (diff) | |
| download | OneRoll-f426444c1e2481521856ba244a0105025d58405d.tar.gz OneRoll-f426444c1e2481521856ba244a0105025d58405d.zip | |
Fix regression
Diffstat (limited to 'node/variablenode.cpp')
| -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) |