aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky2017-12-01 08:24:26 -0300
committerGitHub2017-12-01 08:24:26 -0300
commitd81c5004b1eb7e2041e18e8f4af1a6ac38be3fce (patch)
treec789ae338bcff5e80d57d12c81978cb3c797383a
parente89309b9315d45eb4719180ea75f1db9fc2190a1 (diff)
parent1f0e9c13a40dcc96eb3007c3a32292bd97aa190c (diff)
downloadgodot-d81c5004b1eb7e2041e18e8f4af1a6ac38be3fce.tar.gz
godot-d81c5004b1eb7e2041e18e8f4af1a6ac38be3fce.tar.zst
godot-d81c5004b1eb7e2041e18e8f4af1a6ac38be3fce.zip
-rw-r--r--scene/main/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index d8baa7834..cae368aec 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));