Lighting thread disabled its chunkstays before deleting them.
This commit is contained in:
parent
fb58ef55be
commit
56ad2c2124
@ -106,11 +106,13 @@ void cLightingThread::Stop(void)
|
|||||||
cCSLock Lock(m_CS);
|
cCSLock Lock(m_CS);
|
||||||
for (cChunkStays::iterator itr = m_PendingQueue.begin(), end = m_PendingQueue.end(); itr != end; ++itr)
|
for (cChunkStays::iterator itr = m_PendingQueue.begin(), end = m_PendingQueue.end(); itr != end; ++itr)
|
||||||
{
|
{
|
||||||
|
(*itr)->Disable();
|
||||||
delete *itr;
|
delete *itr;
|
||||||
}
|
}
|
||||||
m_PendingQueue.clear();
|
m_PendingQueue.clear();
|
||||||
for (cChunkStays::iterator itr = m_Queue.begin(), end = m_Queue.end(); itr != end; ++itr)
|
for (cChunkStays::iterator itr = m_Queue.begin(), end = m_Queue.end(); itr != end; ++itr)
|
||||||
{
|
{
|
||||||
|
(*itr)->Disable();
|
||||||
delete *itr;
|
delete *itr;
|
||||||
}
|
}
|
||||||
m_Queue.clear();
|
m_Queue.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user