summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-12 14:27:19 +0100
committerMattes D <github@xoft.cz>2014-12-12 14:27:19 +0100
commitc8a49a61897152bbdbc8e3f48c09f652d93be7b0 (patch)
tree7a91ec479e5b001bb3586db2c33dd69e880ba5c7
parentExported cWorld:PrepareChunk to Lua API, test in Debuggers. (diff)
downloadcuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar.gz
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar.bz2
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar.lz
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar.xz
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.tar.zst
cuberite-c8a49a61897152bbdbc8e3f48c09f652d93be7b0.zip
Diffstat (limited to '')
-rw-r--r--src/LightingThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp
index 01ba24105..ced95d4e1 100644
--- a/src/LightingThread.cpp
+++ b/src/LightingThread.cpp
@@ -226,6 +226,8 @@ void cLightingThread::Execute(void)
} // CSLock(m_CS)
LightChunk(*Item);
+ Item->Disable();
+ delete Item;
}
}
@@ -324,8 +326,6 @@ void cLightingThread::LightChunk(cLightingChunkStay & a_Item)
{
a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ);
}
- a_Item.Disable();
- delete &a_Item;
}