Fixed potential bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8574b97854
commit
b3f826cece
@ -258,6 +258,8 @@ void RibbonWidget::focused()
|
||||
{
|
||||
Widget::focused();
|
||||
|
||||
if (m_children.size() < 1) return; // empty ribbon
|
||||
|
||||
if (m_focus == NULL) m_focus = m_children.get(m_selection[0]); // FIXME : don't hardcode player 0 here
|
||||
|
||||
if (m_event_handler != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user