*Remove unneeded assert.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-01 02:08:59 +02:00
parent 6343c2a00f
commit 129f6ce6f0
2 changed files with 1 additions and 2 deletions

View File

@@ -1691,7 +1691,6 @@ void WorldObject::SendObjectDeSpawnAnim(uint64 guid)
void WorldObject::SetMap(Map * map)
{
assert (!m_currMap);
ASSERT(map);
m_currMap = map;
}

View File

@@ -2123,7 +2123,7 @@ class TRINITY_DLL_SPEC Player : public Unit
MapReference &GetMapRef() { return m_mapRef; }
// Set map to player and add reference
void SetMap(Map * map) {Unit::SetMap(map); m_mapRef.link(map, this);}
void SetMap(Map * map) {Unit::SetMap(map); assert (!m_currMap); m_mapRef.link(map, this);}
void ResetMap();
bool isAllowedToLoot(Creature* creature);