1
0
Fork 0

cWorld: Moved initialization into constructor.

Fixes CID 71781.
This commit is contained in:
Mattes D 2014-12-21 22:19:22 +01:00
parent fe00c99c95
commit ecf778bbec
1 changed files with 2 additions and 3 deletions

View File

@ -279,6 +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_SkyDarkness(0),
m_GameMode(gmNotSet),
m_bEnabledPVP(false),
@ -620,9 +622,6 @@ void cWorld::Start(void)
m_ChunkMap = make_unique<cChunkMap>(this);
m_LastSave = 0;
m_LastUnload = 0;
// preallocate some memory for ticking blocks so we don't need to allocate that often
m_BlockTickQueue.reserve(1000);
m_BlockTickQueueCopy.reserve(1000);