From 1f0e9c13a40dcc96eb3007c3a32292bd97aa190c Mon Sep 17 00:00:00 2001 From: Konstantin Zaitsev Date: Fri, 1 Dec 2017 17:57:47 +0700 Subject: Fixed crash on duplicate instanced nodes (#13432) --- scene/main/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') 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 *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)); -- cgit v1.2.3