From 2b42311f2c1ca3dccf00a62aa21c6534b96fc49e Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Wed, 4 Nov 2009 22:22:45 +0100 Subject: Fix a crash in AuraEffect::HandleAuraFeatherFall. Fixes #63, fixes #52 --HG-- branch : trunk --- src/game/SpellAuras.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index e60717ac999..89d19956597 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3336,6 +3336,8 @@ void AuraEffect::HandleAuraFeatherFall(bool apply, bool Real, bool /*changeAmoun if(apply) { Unit* caster = GetCaster(); + if (!caster || !m_target) + return; if (caster->GetGUID() == m_target->GetGUID()) { -- cgit v1.2.3