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:
parent
285d98fee7
commit
4ed413d5d5
@ -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)
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user