*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

@@ -1717,7 +1717,7 @@ void WorldObject::SetMap(Map * map)
void WorldObject::ResetMap()
{
ASSERT(m_currMap);
ASSERT(!IsInWorld() || GetTypeId() == TYPEID_CORPSE);
ASSERT(!IsInWorld());
if(m_isWorldObject)
m_currMap->RemoveWorldObject(this);
m_currMap = NULL;