summaryrefslogtreecommitdiff
path: root/scene/gui/check_box.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-06 09:45:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-06 09:45:25 -0300
commit9de37817bcd0fb53384539d1b1a772541cabaca1 (patch)
tree62896933ec882cc0375795b75ae6c468ba4295a1 /scene/gui/check_box.cpp
parentbc3c14a76b988a50e65328a932316c2e630a7ae6 (diff)
-removed dynamic_cast on CheckBox, fixes #1830
Diffstat (limited to 'scene/gui/check_box.cpp')
-rw-r--r--scene/gui/check_box.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/check_box.cpp b/scene/gui/check_box.cpp
index 309152ba8f..2aa82bc5f5 100644
--- a/scene/gui/check_box.cpp
+++ b/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);