Build fix

This commit is contained in:
Shauren
2021-11-25 21:02:46 +01:00
parent b02f382ed7
commit e538759dfd

View File

@@ -78,7 +78,7 @@ namespace Trainer
BattlePetSpeciesEntry const* speciesEntry = sSpellMgr->GetBattlePetSpecies(trainerSpell->SpellId);
if (speciesEntry)
{
if (player->GetSession()->GetBattlePetMgr()->HasMaxPetCount(speciesEntry))
if (player->GetSession()->GetBattlePetMgr()->HasMaxPetCount(speciesEntry, player->GetGUID()))
{
// Don't send any error to client (intended)
return;