*Fix a crash caused by charm/possess spells.

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

No files matched your search

-3
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());