summaryrefslogtreecommitdiffstats
path: root/src/SpawnPrepare.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();
+ }
}