Merge pull request #13445 from kosz78/fix-duplicate-crash

Fixed crash on duplicate instanced nodes (#13432)
This commit is contained in:
Juan Linietsky 2017-12-01 08:24:26 -03:00 committed by GitHub
commit d81c5004b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));