[8817] remove corpses from world at halting server

this fixes the crash after .server shutdown
This commit is contained in:
balrok 2009-11-14 04:32:21 -05:00
parent c3c7ab2f63
commit f1421a4ece
2 changed files with 4 additions and 1 deletions

View file

@ -47,7 +47,10 @@ ObjectAccessor::ObjectAccessor() {}
ObjectAccessor::~ObjectAccessor()
{
for(Player2CorpsesMapType::const_iterator itr = i_player2corpse.begin(); itr != i_player2corpse.end(); ++itr)
{
itr->second->RemoveFromWorld();
delete itr->second;
}
}
Unit*

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8816"
#define REVISION_NR "8817"
#endif // __REVISION_NR_H__