mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 14:17:28 +01:00
*Remove unneeded assert.
--HG-- branch : trunk
This commit is contained in:
@@ -1691,7 +1691,6 @@ void WorldObject::SendObjectDeSpawnAnim(uint64 guid)
|
||||
|
||||
void WorldObject::SetMap(Map * map)
|
||||
{
|
||||
assert (!m_currMap);
|
||||
ASSERT(map);
|
||||
m_currMap = map;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user