diff options
| author | QAston <none@none> | 2009-08-01 02:08:59 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-01 02:08:59 +0200 |
| commit | 129f6ce6f098430a98c0757a67afdc7767168ab0 (patch) | |
| tree | 9c437c98a3ef8d6aad825e2bb4e3803eb26bb508 /src | |
| parent | 6343c2a00fc28c18379631fa60eb812f1749f98e (diff) | |
*Remove unneeded assert.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Object.cpp | 1 | ||||
| -rw-r--r-- | src/game/Player.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 8a9a3e09be5..69a286289b3 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1691,7 +1691,6 @@ void WorldObject::SendObjectDeSpawnAnim(uint64 guid) void WorldObject::SetMap(Map * map) { - assert (!m_currMap); ASSERT(map); m_currMap = map; } diff --git a/src/game/Player.h b/src/game/Player.h index c8fbe96049f..d6d512a73a0 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -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); |
