From 0f5407e92e1f0e2bb3f8695823d1617f6803ad91 Mon Sep 17 00:00:00 2001 From: "Bogir[rus]" Date: Sat, 9 Apr 2022 04:21:52 +0500 Subject: [PATCH] fix create random guild --- src/RandomPlayerbotFactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RandomPlayerbotFactory.cpp b/src/RandomPlayerbotFactory.cpp index 910eaa6c..1580b828 100644 --- a/src/RandomPlayerbotFactory.cpp +++ b/src/RandomPlayerbotFactory.cpp @@ -498,10 +498,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds() continue; if (sGuildMgr->GetGuildByName(guildName)) - { - LOG_WARN("playerbots", "GuildName %s is busy. Skipped...", guildName.c_str()); continue; - } if (availableLeaders.empty()) { @@ -518,6 +515,9 @@ void RandomPlayerbotFactory::CreateRandomGuilds() continue; } + if (player->GetGuildId()) + continue; + Guild* guild = new Guild(); if (!guild->Create(player, guildName)) {