Reordered Listed Initalisation order in src/UI/Window.cpp
Reordered the Listed Initalisation order for CWindow to the executed initalisation order. The compiler initalises values in the order the fields are declared not the initalisations listed
This commit is contained in:
@@ -28,9 +28,9 @@ cWindow::cWindow(WindowType a_WindowType, const AString & a_WindowTitle) :
|
||||
m_WindowID((++m_WindowIDCounter) % 127),
|
||||
m_WindowType(a_WindowType),
|
||||
m_WindowTitle(a_WindowTitle),
|
||||
m_Owner(NULL),
|
||||
m_IsDestroyed(false),
|
||||
m_ShouldDistributeToHotbarFirst(true)
|
||||
m_ShouldDistributeToHotbarFirst(true),
|
||||
m_Owner(NULL)
|
||||
{
|
||||
if (a_WindowType == wtInventory)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user