summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-21 22:19:22 +0100
committerMattes D <github@xoft.cz>2014-12-21 22:19:22 +0100
commitecf778bbec2794562bf5e5b8645e2171f7cd081c (patch)
treee2677062390835e39473bee9c145f65227dab80a /src
parentcEndGen: Fixed unitialized member variables. (diff)
downloadcuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar.gz
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar.bz2
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar.lz
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar.xz
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.tar.zst
cuberite-ecf778bbec2794562bf5e5b8645e2171f7cd081c.zip
Diffstat (limited to 'src')
-rw-r--r--src/World.cpp5
1 files changed, 2 insertions, 3 deletions
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<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);