aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2022-01-22 12:59:01 +0100
committerRenaud G <renaud@rolisteam.org>2022-01-22 12:59:01 +0100
commitf426444c1e2481521856ba244a0105025d58405d (patch)
tree5a53bb3a67bb9dc20c1576ba73092d8d05d3bbe2
parent262cb9afb8338a76e126dea672a3fda53d8d1dad (diff)
downloadOneRoll-f426444c1e2481521856ba244a0105025d58405d.tar.gz
OneRoll-f426444c1e2481521856ba244a0105025d58405d.zip
Fix regression
-rw-r--r--node/variablenode.cpp10
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)