diff options
author | Mattes D <github@xoft.cz> | 2014-05-09 09:07:54 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-09 18:32:03 +0200 |
commit | 56ad2c21242b35d6c1054f0526903760c3b4e666 (patch) | |
tree | 4426a9a94d7970b276c81299429fd50925d5e28d /src/LightingThread.cpp | |
parent | Fixed MSVC 64-bit build warnings. (diff) | |
download | cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar.gz cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar.bz2 cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar.lz cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar.xz cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.tar.zst cuberite-56ad2c21242b35d6c1054f0526903760c3b4e666.zip |
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 5ba2940d2..5459644af 100644 --- a/src/LightingThread.cpp +++ b/src/LightingThread.cpp @@ -106,11 +106,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(); |