summaryrefslogtreecommitdiff
path: root/scene/gui/button_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/button_group.cpp')
-rw-r--r--scene/gui/button_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/button_group.cpp b/scene/gui/button_group.cpp
index 58b323c24d..94cc0a8d51 100644
--- a/scene/gui/button_group.cpp
+++ b/scene/gui/button_group.cpp
@@ -117,7 +117,7 @@ BaseButton *ButtonGroup::get_focused_button() const{
int ButtonGroup::get_pressed_button_index() const {
//in tree order, this is bizarre
- ERR_FAIL_COND_V(!is_inside_scene(),0);
+ ERR_FAIL_COND_V(!is_inside_tree(),0);
BaseButton *pressed = get_pressed_button();
if (!pressed)