1
0
Fork 0

Fix compile error on OS X introduced by commit ecf778bbec

The following error occurs on OS X with the order reversed: `MCServer/src/World.cpp:282:2: error: field 'm_LastSave' will be initialized after field 'm_LastUnload' [-Werror,-Wreorder] m_LastSave(0),`.    Reversing the order of initialization fixes this.
This commit is contained in:
Jonathan Fabian 2014-12-21 23:02:02 -05:00
parent ae8c871565
commit fbd0cf74bd
1 changed files with 1 additions and 1 deletions

View File

@ -279,8 +279,8 @@ cWorld::cWorld(const AString & a_WorldName, eDimension a_Dimension, const AStrin
m_WorldAge(0),
m_TimeOfDay(0),
m_LastTimeUpdate(0),
m_LastSave(0),
m_LastUnload(0),
m_LastSave(0),
m_SkyDarkness(0),
m_GameMode(gmNotSet),
m_bEnabledPVP(false),