*Add an assert in ~worldobject

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-13 11:47:38 -05:00
parent 6b19d80f72
commit 9cff946d8d
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -80,17 +80,15 @@ Object::Object( ) : m_PackGUID(sizeof(uint64)+1)
m_PackGUID.appendPackGUID(0);
}
/*
WorldObject::~WorldObject()
{
if(m_currMap)
if(m_isWorldObject && m_currMap)
{
sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d, entry=%u deleted but still in map!!", GetGUID(), GetTypeId(), GetEntry());
assert(false);
ResetMap();
}
}
*/
Object::~Object( )
{
+1 -1
View File
@@ -367,7 +367,7 @@ class TRINITY_DLL_SPEC Object
class TRINITY_DLL_SPEC WorldObject : public Object
{
public:
virtual ~WorldObject ( ) {}
virtual ~WorldObject();
virtual void Update ( uint32 /*time_diff*/ ) { }