소스 검색

-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);