summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 20:59:59 +0200
committerMattes D <github@xoft.cz>2014-05-09 20:59:59 +0200
commit839cff62ad34fd4203e7920b491419ced8f0ddbd (patch)
tree3557874b60f1a0ae440651459aefdbfb6e56ce2b /src/LightingThread.cpp
parentRemoved unused constants from MineShafts and Ravines. (diff)
parentFixed size_t in FireworksSerializer. (diff)
downloadcuberite-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.cpp2
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();