summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 09:07:54 +0200
committerMattes D <github@xoft.cz>2014-05-09 18:32:03 +0200
commit56ad2c21242b35d6c1054f0526903760c3b4e666 (patch)
tree4426a9a94d7970b276c81299429fd50925d5e28d /src
parentFixed MSVC 64-bit build warnings. (diff)
downloadcuberite-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')
-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();