diff options
| author | 2018-10-27 00:46:35 +0200 | |
|---|---|---|
| committer | 2018-11-09 23:47:36 +0100 | |
| commit | 250431661bc4abb819bf790ff3348babfadf98b4 (patch) | |
| tree | 8eae34a5830cc0c91e655da2020a9f2b9fd709f9 | |
| parent | b210bda3d2362e9b5f1606c7a21f546dcd2e6a67 (diff) | |
| download | OneRoll-250431661bc4abb819bf790ff3348babfadf98b4.tar.gz OneRoll-250431661bc4abb819bf790ff3348babfadf98b4.zip | |
copy data parameter when copy variable node
| -rw-r--r-- | node/variablenode.cpp | 4 |
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()); |