diff options
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 1 |
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();
|