aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-29 13:08:23 -0600
committermegamage <none@none>2008-11-29 13:08:23 -0600
commit3d8d45c57a84538afbf716fc9304ea3207ea1948 (patch)
treed0dd806cae116e624bb6d999123c8dd70b411736 /src/game/Unit.cpp
parentf2814351afa9c3b14eb6d055e655ccbb762589e2 (diff)
*Do unit relocation notification only once per update. Hope this can solve the stealth crash problem once for all.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f23f450c201..645ff194eba 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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);
+} \ No newline at end of file