aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-10-27 00:46:35 +0200
committerRenaud G <renaud@rolisteam.org>2018-11-09 23:47:36 +0100
commit250431661bc4abb819bf790ff3348babfadf98b4 (patch)
tree8eae34a5830cc0c91e655da2020a9f2b9fd709f9 /node
parentb210bda3d2362e9b5f1606c7a21f546dcd2e6a67 (diff)
downloadOneRoll-250431661bc4abb819bf790ff3348babfadf98b4.tar.gz
OneRoll-250431661bc4abb819bf790ff3348babfadf98b4.zip
copy data parameter when copy variable node
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());