*Do unit relocation notification only once per update. Hope this can solve the stealth crash problem once for all.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-29 13:08:23 -06:00
parent f2814351af
commit 3d8d45c57a
5 changed files with 59 additions and 9 deletions

View File

@@ -148,6 +148,7 @@ bool IsPassiveStackableSpell( uint32 spellId )
Unit::Unit()
: WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this)
, m_IsInNotifyList(false), m_Notified(false)
{
m_objectType |= TYPEMASK_UNIT;
m_objectTypeId = TYPEID_UNIT;
@@ -12562,3 +12563,11 @@ void Unit::RemoveAurasAtChanneledTarget(SpellEntry const* spellInfo)
++iter;
}
}
/*-----------------------TRINITY-----------------------------*/
void Unit::SetToNotify()
{
if(Map *map = GetMap())
map->AddUnitToNotify(this);
}