Fixed another crash caused by lack or RTTI in irrLicht (What I wonder is just why on one else who had RTTI off saw this bug...)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4114 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -563,11 +563,11 @@ void DynamicRibbonWidget::updateItemDisplay()
|
||||
{
|
||||
IconButtonWidget* icon = dynamic_cast<IconButtonWidget*>(&row.m_children[i]);
|
||||
assert(icon != NULL);
|
||||
IGUIButton* button = dynamic_cast<IGUIButton*>(icon->m_element);
|
||||
IGUIButton* button = icon->getIrrlichtElement<IGUIButton>();
|
||||
assert(button != NULL);
|
||||
|
||||
int col_scroll = i + m_scroll_offset;
|
||||
while(col_scroll > max_scroll) col_scroll -= max_scroll+1;
|
||||
while (col_scroll > max_scroll) col_scroll -= max_scroll+1;
|
||||
|
||||
icon_id = (col_scroll)*row_amount + n;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user