Fixed crash due to uninitialized variable in abstract top level container
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5795 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
363207e26c
commit
045317ccd1
@ -34,6 +34,12 @@ using namespace video;
|
|||||||
using namespace io;
|
using namespace io;
|
||||||
using namespace gui;
|
using namespace gui;
|
||||||
|
|
||||||
|
AbstractTopLevelContainer::AbstractTopLevelContainer()
|
||||||
|
{
|
||||||
|
m_first_widget = NULL;
|
||||||
|
m_last_widget = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
void AbstractTopLevelContainer::addWidgetsRecursively(ptr_vector<Widget>& widgets, Widget* parent)
|
void AbstractTopLevelContainer::addWidgetsRecursively(ptr_vector<Widget>& widgets, Widget* parent)
|
||||||
{
|
{
|
||||||
const unsigned short widgets_amount = widgets.size();
|
const unsigned short widgets_amount = widgets.size();
|
||||||
|
@ -52,6 +52,7 @@ namespace GUIEngine
|
|||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
AbstractTopLevelContainer();
|
||||||
virtual ~AbstractTopLevelContainer() {}
|
virtual ~AbstractTopLevelContainer() {}
|
||||||
|
|
||||||
virtual int getWidth() = 0;
|
virtual int getWidth() = 0;
|
||||||
|
@ -52,8 +52,6 @@ Screen::Screen(const char* file, bool pause_race)
|
|||||||
m_throttle_FPS = true;
|
m_throttle_FPS = true;
|
||||||
m_render_3d = false;
|
m_render_3d = false;
|
||||||
m_loaded = false;
|
m_loaded = false;
|
||||||
m_first_widget = NULL;
|
|
||||||
m_last_widget = NULL;
|
|
||||||
m_pause_race = pause_race;
|
m_pause_race = pause_race;
|
||||||
} // Screen
|
} // Screen
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user