From 722db7b74fe7b4c74ec8428dae39a80ebc2eefbe Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 4 Nov 2009 15:38:43 -0800 Subject: *Fix another crash in AuraEffect::HandleAuraFeatherFall. Closes #64. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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()) -- cgit v1.2.3