Fix all the remaining 'tried to lighten unnamed widget' warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-12-11 01:24:15 +00:00
parent 285d98fee7
commit 4ed413d5d5
2 changed files with 3 additions and 1 deletions

View File

@ -213,7 +213,7 @@ void MenuManager::update()
} // switch } // switch
if( id != MENUID_EXITGAME ) if( !widget_manager->is_empty() )
{ {
// Restores the previously selected widget if there was one. // Restores the previously selected widget if there was one.
if (saved_widget != WidgetManager::WGT_NONE) if (saved_widget != WidgetManager::WGT_NONE)

View File

@ -128,6 +128,8 @@ public:
WidgetManager(); WidgetManager();
~WidgetManager(); ~WidgetManager();
bool is_empty() { return m_widgets.empty(); }
bool add_wgt bool add_wgt
( (
const int TOKEN, //A number that names the widget. const int TOKEN, //A number that names the widget.