Merge pull request #19663 from marcelofg55/add_child_below_node

Add missing NULL checks for add_child_below_node
This commit is contained in:
Max Hilbrunner 2018-06-20 05:01:31 +02:00 committed by GitHub
commit d433310580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1095,6 +1095,10 @@ void Node::add_child(Node *p_child, bool p_legible_unique_name) {
}
void Node::add_child_below_node(Node *p_node, Node *p_child, bool p_legible_unique_name) {
ERR_FAIL_NULL(p_node);
ERR_FAIL_NULL(p_child);
add_child(p_child, p_legible_unique_name);
if (is_a_parent_of(p_node)) {