From 850478d38f268c0c5fc590e4e96e1e5b911dd686 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 13 Jan 2009 23:49:38 -0600 Subject: *Try to fix the bug that ~Creature causes crash. --HG-- branch : trunk --- src/game/Unit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e6661145439..e8ba2b815ab 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -12542,6 +12542,8 @@ bool Unit::HandleMeandingAuraProc( Aura* triggeredByAura ) void Unit::RemoveAurasAtChanneledTarget(SpellEntry const* spellInfo) { uint64 target_guid = GetUInt64Value(UNIT_FIELD_CHANNEL_OBJECT); + if(target_guid == GetGUID()) + return; if(!IS_UNIT_GUID(target_guid)) return; -- cgit v1.2.3