diff options
author | megamage <none@none> | 2009-01-13 23:49:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-13 23:49:38 -0600 |
commit | 850478d38f268c0c5fc590e4e96e1e5b911dd686 (patch) | |
tree | dece73fda4827bfbfd2cb75ccc3317525d585517 /src | |
parent | d6ead868c8cb8ce4dcfd21ba673717651f9dd83e (diff) |
*Try to fix the bug that ~Creature causes crash.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |