Browse Source

-removed dynamic_cast on CheckBox, fixes #1830

Juan Linietsky 10 năm trước cách đây
mục cha
commit
9de37817bc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/gui/check_box.cpp

+ 1 - 1
scene/gui/check_box.cpp

@@ -59,7 +59,7 @@ bool CheckBox::is_radio()
     Node* parent = this;
     Node* parent = this;
     do {
     do {
         parent = parent->get_parent();
         parent = parent->get_parent();
-        if (dynamic_cast< ButtonGroup* >(parent))
+	if (parent->cast_to<ButtonGroup>())
             break;
             break;
     } while (parent);
     } while (parent);