*Try to fix the bug that ~Creature causes crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-13 23:49:38 -06:00
parent d6ead868c8
commit 850478d38f

View File

@@ -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;