From 262cb9afb8338a76e126dea672a3fda53d8d1dad Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 22 Jan 2022 00:56:32 +0100 Subject: Fix regression --- node/variablenode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/variablenode.cpp') diff --git a/node/variablenode.cpp b/node/variablenode.cpp index 416be86..0cd1733 100644 --- a/node/variablenode.cpp +++ b/node/variablenode.cpp @@ -1,5 +1,6 @@ #include "variablenode.h" #include "parsingtoolbox.h" + VariableNode::VariableNode() {} void VariableNode::run(ExecutionNode* previous) @@ -16,7 +17,7 @@ void VariableNode::run(ExecutionNode* previous) if(!result) return; - auto copy= result->getCopy(); + m_result= result->getCopy(); auto diceResult= dynamic_cast(result); if(nullptr == diceResult) return; @@ -26,7 +27,6 @@ void VariableNode::run(ExecutionNode* previous) die->setDisplayed(false); } - m_result= copy; if(nullptr != m_nextNode) { m_nextNode->run(this); -- cgit v1.2.3-70-g09d2