diff options
author | QAston <none@none> | 2009-02-12 19:57:51 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-02-12 19:57:51 +0100 |
commit | 9f3a35d799eef2a26aea469f52e3fdc81d4abe9a (patch) | |
tree | c85db54961cf15a7be87d4be3eaf0aed34efd661 /src | |
parent | c4fa6a5d54adbb76b5c7fd4a27d2a453149a30c9 (diff) |
*Try to fix crash in SendAurasForTarget.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 9cf21a31faa..0896ba99a59 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -448,6 +448,12 @@ m_updated(false), m_isRemovedOnShapeLost(true), m_in_use(false) Aura::~Aura() { + //Delete references to aura + if(GetAuraSlot() < MAX_AURAS && m_target && m_target->GetVisibleAura(GetAuraSlot())) + { + AuraSlotEntry * entry = m_target->GetVisibleAura(GetAuraSlot()); + entry->m_slotAuras[GetEffIndex()]=NULL; + } } AreaAura::AreaAura(SpellEntry const* spellproto, uint32 eff, int32 *currentBasePoints, Unit *target, |