summaryrefslogtreecommitdiffstats
path: root/src/SpawnPrepare.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-11-03 01:23:45 +0100
committerworktycho <work.tycho@gmail.com>2015-11-03 01:23:45 +0100
commit47604cd91482cd70f1eda8e1c84971a43a209fb1 (patch)
treee38111dcc42802a50cdc6c329796325bee6db67b /src/SpawnPrepare.cpp
parentExamined a fix for #2588 (diff)
parentMerge branch 'master' into chunkprepare-deadlock (diff)
downloadcuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.gz
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.bz2
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.lz
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.xz
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.zst
cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.zip
Diffstat (limited to 'src/SpawnPrepare.cpp')
-rw-r--r--src/SpawnPrepare.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SpawnPrepare.cpp b/src/SpawnPrepare.cpp
index e332d3b1a..9f1e645b1 100644
--- a/src/SpawnPrepare.cpp
+++ b/src/SpawnPrepare.cpp
@@ -64,7 +64,10 @@ void cSpawnPrepare::PrepareChunks(cWorld & a_World, int a_SpawnChunkX, int a_Spa
} // for i
// Wait for the lighting thread to prepare everything. Event is set in the Call() callback:
- prep.m_EvtFinished.Wait();
+ if (MaxIdx > 0)
+ {
+ prep.m_EvtFinished.Wait();
+ }
}