Fix deadlock, resolves #2521
This commit is contained in:
parent
ad8b711b4d
commit
7e4c56ce0d
@ -64,8 +64,11 @@ 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:
|
||||
if (MaxIdx > 0)
|
||||
{
|
||||
prep.m_EvtFinished.Wait();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user