Fixes bug that causes the selection of the last active widget instead of the first active widget by default.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-11-27 01:34:21 +00:00
parent dc22e1268b
commit f40af93ba4

View File

@ -475,8 +475,11 @@ bool WidgetManager::layout(const WidgetArea POSITION)
//Always select the first active widget by default
for( int i = 0; i < NUM_WIDGETS; ++i )
{
if( m_widgets[i].active) m_selected_wgt_token = m_widgets[i].token;
if( m_widgets[i].active)
{
m_selected_wgt_token = m_widgets[i].token;
break;
}
}
//Cleanups