diff options
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index d8baa7834d..cae368aeca 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2121,7 +2121,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const for (int i = 0; i < N->get()->get_child_count(); ++i) { // Skip nodes not really belonging to the instanced hierarchy; they'll be processed normally later - if (get_child(i)->data.owner != this) + if (N->get()->get_child(i)->data.owner != this) continue; node_tree.push_back(N->get()->get_child(i)); |