diff options
author | megamage <none@none> | 2009-08-11 15:40:43 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-11 15:40:43 -0500 |
commit | 4267816fca55b137bf4c7e4e530816dc5c4e7d43 (patch) | |
tree | 23d9792209d48edfc163a0bc55abf29be0529f2d /src/game/Object.cpp | |
parent | 98a19f21257e7c13651ce8f215d67f6223321061 (diff) |
*A temp fix of the crashes caused by corpses.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 6837570bfea..3f6b34a20bb 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -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; } |