diff options
-rw-r--r-- | scene/gui/check_box.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/check_box.cpp b/scene/gui/check_box.cpp index ac156f5144..309152ba8f 100644 --- a/scene/gui/check_box.cpp +++ b/scene/gui/check_box.cpp @@ -61,9 +61,9 @@ bool CheckBox::is_radio() parent = parent->get_parent(); if (dynamic_cast< ButtonGroup* >(parent)) break; - } while (parent != nullptr); + } while (parent); - return (parent != nullptr); + return (parent != 0); } CheckBox::CheckBox(const String &p_text): |