diff options
author | megamage <none@none> | 2009-08-10 23:47:47 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-10 23:47:47 -0500 |
commit | d78c9b39256a8c1a295a8136473acbe18d9248d4 (patch) | |
tree | 4c8730f536601e9c5097657c6ae3ba1ecbfbfb94 /src/game/Object.h | |
parent | c8ed3cf1e963250cd7a64ceff493b8a370632867 (diff) |
*Assert !IsInWorld() in reset map
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r-- | src/game/Object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index c44dd4fd65c..15bc7fcd003 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -529,10 +529,10 @@ class TRINITY_DLL_SPEC WorldObject : public Object void SendPlaySound(uint32 Sound, bool OnlySelf); virtual void SetMap(Map * map); + virtual void ResetMap(); Map * GetMap() const { ASSERT(m_currMap); return m_currMap; } Map * FindMap() const { return m_currMap; } //used to check all object's GetMap() calls when object is not in world! - virtual void ResetMap() { assert(m_currMap); m_currMap = NULL; } //this function should be removed in nearest time... Map const* GetBaseMap() const; |