Fixes possible crash if the last element of the GUI of a screen is a column.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-12-04 18:11:46 +00:00
parent 95093755b9
commit 2ffb606880

View File

@ -293,8 +293,8 @@ int WidgetManager::calc_width() const
//Jump to the next line break
while( i < NUM_ELEMS )
{
++i;
if( m_elems[i].type == ET_BREAK) break;
++i;
}
break;
}
@ -586,8 +586,8 @@ int WidgetManager::calc_line_width( const int START_ELEM ) const
while( i < NUM_ELEMS )
{
++i;
if( m_elems[i].type == ET_BREAK ) break;
++i;
}
break;
}