Browse Source

-removed dynamic_cast on CheckBox, fixes #1830

Juan Linietsky 10 years ago
parent
commit
9de37817bc
1 changed files with 1 additions and 1 deletions
  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;
     do {
         parent = parent->get_parent();
-        if (dynamic_cast< ButtonGroup* >(parent))
+	if (parent->cast_to<ButtonGroup>())
             break;
     } while (parent);