aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/variablenode.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/variablenode.cpp b/node/variablenode.cpp
index b1c9e3b..fafc722 100644
--- a/node/variablenode.cpp
+++ b/node/variablenode.cpp
@@ -53,6 +53,10 @@ ExecutionNode *VariableNode::getCopy() const
{
VariableNode* node = new VariableNode();
node->setIndex(m_index);
+ if(nullptr != m_data)
+ {
+ node->setData(m_data);
+ }
if(nullptr!=m_nextNode)
{
node->setNextNode(m_nextNode->getCopy());