diff options
| author | Max Hilbrunner | 2018-06-20 05:01:31 +0200 |
|---|---|---|
| committer | GitHub | 2018-06-20 05:01:31 +0200 |
| commit | d433310580e6fd5263abac2db7fb4c86d969e98e (patch) | |
| tree | ad3713585f9d78d02d339c52ce0f0ebdd9cc6eb1 | |
| parent | fb5fc042302a314b08f548bc95c015b32bc55bf3 (diff) | |
| parent | 8c1c7ff1314bad018162c14aaff9d0124aed070e (diff) | |
| download | godot-d433310580e6fd5263abac2db7fb4c86d969e98e.tar.gz godot-d433310580e6fd5263abac2db7fb4c86d969e98e.tar.zst godot-d433310580e6fd5263abac2db7fb4c86d969e98e.zip | |
| -rw-r--r-- | scene/main/node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index ffb8acc68..4dc7b0368 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -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)) { |
