diff options
Diffstat (limited to 'scene/gui/container.cpp')
-rw-r--r-- | scene/gui/container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index 145074a626..2abd8cdf03 100644 --- a/scene/gui/container.cpp +++ b/scene/gui/container.cpp @@ -97,7 +97,7 @@ void Container::_sort_children() { } void Container::fit_child_in_rect(Control *p_child, const Rect2 &p_rect) { - ERR_FAIL_COND(!p_child); + ERR_FAIL_NULL(p_child); ERR_FAIL_COND(p_child->get_parent() != this); bool rtl = is_layout_rtl(); |