*A temp fix of the crashes caused by corpses.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-11 15:40:43 -05:00
1 parent 98a19f2125
commit 4267816fca
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -1692,14 +1692,14 @@ void WorldObject::SendObjectDeSpawnAnim(uint64 guid)
void WorldObject::SetMap(Map * map)
{
ASSERT(map);
ASSERT(!IsInWorld());
ASSERT(!IsInWorld() || GetTypeId() == TYPEID_CORPSE);
m_currMap = map;
}
void WorldObject::ResetMap()
{
ASSERT(m_currMap);
ASSERT(!IsInWorld());
ASSERT(!IsInWorld() || GetTypeId() == TYPEID_CORPSE);
m_currMap = NULL;
}