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:
auria 2009-08-28 19:00:17 +00:00
parent 8574b97854
commit b3f826cece

View File

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