diff options
Diffstat (limited to 'src/LightingThread.cpp')
-rw-r--r-- | src/LightingThread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp index b4dda1f25..f961e35c6 100644 --- a/src/LightingThread.cpp +++ b/src/LightingThread.cpp @@ -103,11 +103,13 @@ void cLightingThread::Stop(void) cCSLock Lock(m_CS); for (cChunkStays::iterator itr = m_PendingQueue.begin(), end = m_PendingQueue.end(); itr != end; ++itr) { + (*itr)->Disable(); delete *itr; } m_PendingQueue.clear(); for (cChunkStays::iterator itr = m_Queue.begin(), end = m_Queue.end(); itr != end; ++itr) { + (*itr)->Disable(); delete *itr; } m_Queue.clear(); |