mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Fix formatting and use correct value data type
This commit is contained in:
@@ -3278,7 +3278,8 @@ void PlayerbotFactory::InitArenaTeam()
|
||||
{
|
||||
LOG_INFO("playerbots", "Deleting random bot arena teams...");
|
||||
|
||||
for (auto it = sArenaTeamMgr->GetArenaTeams().begin(); it != sArenaTeamMgr->GetArenaTeams().end(); ++it) {
|
||||
for (auto it = sArenaTeamMgr->GetArenaTeams().begin(); it != sArenaTeamMgr->GetArenaTeams().end(); ++it)
|
||||
{
|
||||
ArenaTeam* arenateam = it->second;
|
||||
if (arenateam->GetCaptain() && arenateam->GetCaptain().IsPlayer())
|
||||
{
|
||||
@@ -3338,7 +3339,8 @@ void PlayerbotFactory::InitArenaTeam()
|
||||
continue;
|
||||
|
||||
ArenaTeam* team = sArenaTeamMgr->GetArenaTeamById(arenaTeamId);
|
||||
if (team){
|
||||
if (team)
|
||||
{
|
||||
if (sCharacterCache->GetCharacterArenaTeamIdByGuid(bot->GetGUID(), team->GetSlot()) != 0)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user