summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
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();