Bugfix: dynamic_cast does not work if irrlicht is compiled without rtti (which it happens to be by
default with visual studio). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -298,9 +298,7 @@ void LabelWidget::add()
|
||||
|
||||
void LabelWidget::setText(stringw newText)
|
||||
{
|
||||
IGUIStaticText* irrwidget = dynamic_cast<IGUIStaticText*>(m_element);
|
||||
assert(irrwidget != NULL);
|
||||
|
||||
IGUIStaticText* irrwidget = static_cast<IGUIStaticText*>(m_element);
|
||||
irrwidget->setText(newText.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user