*Assert !IsInWorld() in reset map

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-10 23:47:47 -05:00
parent c8ed3cf1e9
commit d78c9b3925
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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;