浏览代码

-removed dynamic_cast on CheckBox, fixes #1830

Juan Linietsky 10 年之前
父节点
当前提交
9de37817bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);