diff options
author | Mattes D <github@xoft.cz> | 2014-05-09 20:59:59 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-09 20:59:59 +0200 |
commit | 839cff62ad34fd4203e7920b491419ced8f0ddbd (patch) | |
tree | 3557874b60f1a0ae440651459aefdbfb6e56ce2b /src/LightingThread.cpp | |
parent | Removed unused constants from MineShafts and Ravines. (diff) | |
parent | Fixed size_t in FireworksSerializer. (diff) | |
download | cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.gz cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.bz2 cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.lz cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.xz cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.zst cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.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(); |