You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Add missing NULL checks for add_child_below_node
(cherry picked from commit 8c1c7ff131)
This commit is contained in:
committed by
Rémi Verschelde
parent
fab378abf5
commit
deef878f6f
@@ -1357,6 +1357,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) {
|
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);
|
add_child(p_child, p_legible_unique_name);
|
||||||
|
|
||||||
if (is_a_parent_of(p_node)) {
|
if (is_a_parent_of(p_node)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user