summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-30 18:19:20 +0100
committerMattes D <github@xoft.cz>2014-11-30 18:19:29 +0100
commitdb0f791d431a7ed690139515a42a946fc35a6a36 (patch)
treea113965b13d6df6d506e8d0735e2d924565ba19e
parentFixed nether ceiling (diff)
downloadcuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar.gz
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar.bz2
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar.lz
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar.xz
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.tar.zst
cuberite-db0f791d431a7ed690139515a42a946fc35a6a36.zip
-rw-r--r--src/World.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 84d40d53b..5fe64ea3a 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -164,6 +164,8 @@ protected:
if (m_NumPrepared >= m_MaxIdx)
{
m_EvtFinished.Set();
+ // Must return here, because "this" may have gotten deleted by the previous line
+ return;
}
// Queue another chunk, if appropriate: