From ecf778bbec2794562bf5e5b8645e2171f7cd081c Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 21 Dec 2014 22:19:22 +0100 Subject: cWorld: Moved initialization into constructor. Fixes CID 71781. --- src/World.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/World.cpp b/src/World.cpp index 69b39f831..cd17cde08 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -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(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); -- cgit v1.2.3