*first remove corpse from world then resetmap

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-12 23:12:33 -05:00
parent 24f906cfc0
commit 92769d3ffe
2 changed files with 2 additions and 2 deletions

View File

@@ -65,8 +65,8 @@ Map::~Map()
WorldObject *obj = *i_worldObjects.begin();
assert(obj->m_isWorldObject);
//assert(obj->GetTypeId() == TYPEID_CORPSE);
obj->ResetMap();
obj->RemoveFromWorld();
obj->ResetMap();
}
if(!m_scriptSchedule.empty())