aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-11-04 22:22:45 +0100
committerMachiavelli <none@none>2009-11-04 22:22:45 +0100
commit2b42311f2c1ca3dccf00a62aa21c6534b96fc49e (patch)
tree916cacfe48603b1d4ace3ed2400d25327124ac20
parent880d5a6d13b32dd49f713001a46fa41272735e08 (diff)
Fix a crash in AuraEffect::HandleAuraFeatherFall. Fixes #63, fixes #52
--HG-- branch : trunk
-rw-r--r--src/game/SpellAuras.cpp2
1 files changed, 2 insertions, 0 deletions
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())
{