Core/Tickets: Fixed retrieving name of assigned GM

This commit is contained in:
Shauren
2011-05-11 14:18:09 +02:00
parent 696215c7c5
commit 7a3e622da9
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -15638,11 +15638,11 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const * a
// Pets already have a properly initialized CharmInfo, don't overwrite it.
if (type != CHARM_TYPE_VEHICLE && !GetCharmInfo())
{
CharmInfo *charmInfo = InitCharmInfo();
InitCharmInfo();
if (type == CHARM_TYPE_POSSESS)
charmInfo->InitPossessCreateSpells();
GetCharmInfo()->InitPossessCreateSpells();
else
charmInfo->InitCharmCreateSpells();
GetCharmInfo()->InitCharmCreateSpells();
}
if (charmer->GetTypeId() == TYPEID_PLAYER)