fix build errors

This commit is contained in:
bash 2025-10-05 23:49:13 +02:00
parent 1faf20f567
commit 780f6d60e0
4 changed files with 5 additions and 5 deletions

View File

@ -787,7 +787,7 @@ void PlayerbotAI::Reset(bool full)
void PlayerbotAI::RemoveFromGroup() void PlayerbotAI::RemoveFromGroup()
{ {
if (!bot || !bot->GetGroup() || bot->IsRealPlayer()) if (!bot || !bot->GetGroup() || IsRealPlayer())
return; return;
WorldPacket* packet = new WorldPacket(CMSG_GROUP_DISBAND); WorldPacket* packet = new WorldPacket(CMSG_GROUP_DISBAND);

View File

@ -415,7 +415,7 @@ public:
void ResetStrategies(bool load = false); void ResetStrategies(bool load = false);
void ReInitCurrentEngine(); void ReInitCurrentEngine();
void Reset(bool full = false); void Reset(bool full = false);
void PlayerbotAI::RemoveFromGroup() void RemoveFromGroup();
static bool IsTank(Player* player, bool bySpec = false); static bool IsTank(Player* player, bool bySpec = false);
static bool IsHeal(Player* player, bool bySpec = false); static bool IsHeal(Player* player, bool bySpec = false);
static bool IsDps(Player* player, bool bySpec = false); static bool IsDps(Player* player, bool bySpec = false);

View File

@ -2378,7 +2378,7 @@ void RandomPlayerbotMgr::IncreaseLevel(Player* bot)
void RandomPlayerbotMgr::RandomizeFirst(Player* bot) void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
{ {
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player); PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
if (botAI) if (botAI)
return; return;
@ -2473,7 +2473,7 @@ void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
void RandomPlayerbotMgr::RandomizeMin(Player* bot) void RandomPlayerbotMgr::RandomizeMin(Player* bot)
{ {
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player); PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
if (botAI) if (botAI)
return; return;

View File

@ -70,7 +70,7 @@ bool UninviteAction::Execute(Event event)
return false; return false;
} }
static bool LeaveGroupAction::Leave(Player* player) bool LeaveGroupAction::Leave(Player* player)
{ {
if (player && if (player &&
!botAI && !botAI &&