Core/Player: Dismiss active pet before talent reset to prevent bugs

This commit is contained in:
tobmaps
2011-05-12 19:15:11 +07:00
parent cb6fca4646
commit e7ff1196ed
+2 -2
View File
@@ -4353,6 +4353,8 @@ bool Player::resetTalents(bool no_cost)
}
}
RemovePet(NULL, PET_SAVE_NOT_IN_SLOT, true);
for (uint32 i = 0; i < sTalentStore.GetNumRows(); ++i)
{
TalentEntry const *talentInfo = sTalentStore.LookupEntry(i);
@@ -4405,8 +4407,6 @@ bool Player::resetTalents(bool no_cost)
m_resetTalentsTime = time(NULL);
}
//FIXME: remove pet before or after unlearn spells? for now after unlearn to allow removing of talent related, pet affecting auras
RemovePet(NULL, PET_SAVE_NOT_IN_SLOT, true);
/* when prev line will dropped use next line
if (Pet* pet = GetPet())
{