Bugfix: out of bounds problem avoided.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1d0c75542a
commit
3bac108b3a
@ -630,8 +630,8 @@ int WidgetManager::calc_line_height( const int START_ELEM ) const
|
|||||||
|
|
||||||
while( i < NUM_ELEMS )
|
while( i < NUM_ELEMS )
|
||||||
{
|
{
|
||||||
++i;
|
|
||||||
if( m_elems[i].type == ET_BREAK ) break;
|
if( m_elems[i].type == ET_BREAK ) break;
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user