summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:19:57 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:19:57 +0100
commitdada2bea27bbc0b5dec68e8089ce5b8c296baabd (patch)
treec87790fa9c5ce89bddb126c94a3a90fb13ce9478 /source/cWorld.cpp
parentFixed player spawn teleport postion. (diff)
downloadcuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.gz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.bz2
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.lz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.xz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.zst
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.zip
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r--source/cWorld.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index a5f4bf1c3..c67998064 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -88,6 +88,7 @@ cWorld::~cWorld()
{
cEntity* Entity = *m_pState->m_AllEntities.begin();
m_pState->m_AllEntities.remove( Entity );
+ if( !Entity->IsDestroyed() ) Entity->Destroy();
RemoveEntity( Entity );
}
UnlockEntities();