*Fix a crash caused by charm/possess spells.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-18 16:26:02 -06:00
parent 7bff1c1d60
commit 0ff7fbcd7f
3 changed files with 20 additions and 10 deletions

View File

@@ -12969,9 +12969,6 @@ void Unit::SetCharmedOrPossessedBy(Unit* charmer, bool possess)
if(GetTypeId() == TYPEID_PLAYER)
((Player*)this)->StopCastingCharm();
// Charmed stop being charmed
RemoveCharmAuras();
// Set charmed
charmer->SetCharm(this);
SetCharmerGUID(charmer->GetGUID());