diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-08-21 17:44:25 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-08-21 17:44:25 +0200 |
commit | 71035a8706aa89d6cd12f25fea5191fb35787406 (patch) | |
tree | b7bcd071756ce9cc0ac620292fc4f80225913471 /src/World.cpp | |
parent | test (diff) | |
download | cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.gz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.bz2 cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.lz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.xz cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.zst cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index 242345f02..a9d6b2b13 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -253,6 +253,10 @@ cWorld::~cWorld() Serializer.Save(); m_MapManager.SaveMapData(); + + // Explicitly destroy the chunkmap, so that it's guaranteed to be destroyed before the other internals + // This fixes crashes on stopping the server, because chunk destructor deletes entities and those access the world. + m_ChunkMap.reset(); } |