diff options
author | maximius <none@none> | 2009-11-04 15:38:43 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-04 15:38:43 -0800 |
commit | 722db7b74fe7b4c74ec8428dae39a80ebc2eefbe (patch) | |
tree | f54b5a8ade94d3d1222c3842634365568f7ee9e6 | |
parent | 2b42311f2c1ca3dccf00a62aa21c6534b96fc49e (diff) |
*Fix another crash in AuraEffect::HandleAuraFeatherFall. Closes #64.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuras.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 89d19956597..caea0fa2874 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3329,14 +3329,17 @@ void AuraEffect::HandleAuraWaterWalk(bool apply, bool Real, bool /*changeAmount* void AuraEffect::HandleAuraFeatherFall(bool apply, bool Real, bool /*changeAmount*/) { // only at real add/remove aura - if(!Real) + if (!Real) + return; + + if (!m_target) return; WorldPacket data; - if(apply) + if (apply) { Unit* caster = GetCaster(); - if (!caster || !m_target) + if (!caster) return; if (caster->GetGUID() == m_target->GetGUID()) |