diff options
author | twobit <tdetoy@twobitadder.net> | 2024-03-17 22:44:05 -0400 |
---|---|---|
committer | twobit <tdetoy@twobitadder.net> | 2024-03-17 22:44:05 -0400 |
commit | b9bade8db1bf0445ce879ba6e1823d8266e60b2d (patch) | |
tree | beda61823df34f5873e77eb663dc9a80ef6539bd | |
parent | fe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff) | |
download | redot-engine-b9bade8db1bf0445ce879ba6e1823d8266e60b2d.tar.gz |
fixes crash on nodes with internal children
-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 906c397b5c..3c2e328d64 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1823,7 +1823,7 @@ void Node::reparent(Node *p_parent, bool p_keep_global_transform) { Node *check = to_visit[to_visit.size() - 1]; to_visit.resize(to_visit.size() - 1); - for (int i = 0; i < check->get_child_count(); i++) { + for (int i = 0; i < check->get_child_count(false); i++) { Node *child = check->get_child(i, false); to_visit.push_back(child); if (child->data.owner == owner_temp) { |