From ba8f6fd1194d62b497816fa55737c8bf75df4c5d Mon Sep 17 00:00:00 2001 From: "Bogir[rus]" Date: Sat, 9 Apr 2022 15:06:32 +0500 Subject: [PATCH] Update PlayerbotFactory.cpp --- src/PlayerbotFactory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index ae7030e8..74b16e9e 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -2576,8 +2576,7 @@ void PlayerbotFactory::InitArenaTeam() ObjectGuid capt = arenateam->GetCaptain(); Player* botcaptain = ObjectAccessor::FindPlayer(capt); - if (sCharacterCache->GetCharacterArenaTeamIdByGuid(capt, arenateam->GetType()) != 0 || botcaptain->GetArenaTeamId(arenateam->GetType())) - return; + if ((bot && bot->GetArenaTeamId(arenateam->GetSlot())) || sCharacterCache->GetCharacterArenaTeamIdByGuid(bot->GetGUID(), arenateam->GetSlot()) != 0) if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need? {