From 3bac108b3ae881ed6e4623ac9e6b7036b8f0acb7 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 5 Dec 2007 04:12:55 +0000 Subject: [PATCH] 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 --- src/widget_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget_manager.cpp b/src/widget_manager.cpp index 977ee7afc..218d32dd2 100644 --- a/src/widget_manager.cpp +++ b/src/widget_manager.cpp @@ -630,8 +630,8 @@ int WidgetManager::calc_line_height( const int START_ELEM ) const while( i < NUM_ELEMS ) { - ++i; if( m_elems[i].type == ET_BREAK ) break; + ++i; } } }