1
0
Fork 0

Fix deadlock, resolves #2521

This commit is contained in:
Alexander Harkness 2015-11-02 18:21:35 +00:00
parent ad8b711b4d
commit 7e4c56ce0d
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}