From f426444c1e2481521856ba244a0105025d58405d Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 22 Jan 2022 12:59:01 +0100 Subject: Fix regression --- node/variablenode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'node/variablenode.cpp') 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(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) -- cgit v1.2.3-70-g09d2