Преглед изворни кода

Merge pull request #845 from WolfgangD/next

Fixed userData pointer not cloned when cloning a node.
Sean Paul Taylor пре 13 година
родитељ
комит
2a3665fc6c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      gameplay/src/Node.cpp

+ 1 - 0
gameplay/src/Node.cpp

@@ -1003,6 +1003,7 @@ void Node::cloneInto(Node* node, NodeCloneContext &context) const
     }
     node->_world = _world;
     node->_bounds = _bounds;
+    node->_userData = _userData;
     if (_tags)
     {
         node->_tags = new std::map<std::string, std::string>(_tags->begin(), _tags->end());