fix warnings (#1428)

This commit is contained in:
Yunfan Li
2025-07-08 01:43:24 +08:00
committed by GitHub
parent 51ed9c4649
commit 8ed053ca01
2 changed files with 3 additions and 3 deletions

View File

@@ -98,10 +98,10 @@ bool InviteNearbyToGroupAction::Execute(Event event)
if (group && group->isRaidGroup())
bot->Say(BOT_TEXT2("join_raid", placeholders),
(bot->GetTeamId() == ALLIANCE ? LANG_COMMON : LANG_ORCISH));
(bot->GetTeamId() == TEAM_ALLIANCE ? LANG_COMMON : LANG_ORCISH));
else
bot->Say(BOT_TEXT2("join_group", placeholders),
(bot->GetTeamId() == ALLIANCE ? LANG_COMMON : LANG_ORCISH));
(bot->GetTeamId() == TEAM_ALLIANCE ? LANG_COMMON : LANG_ORCISH));
}
return Invite(bot, player);

View File

@@ -63,7 +63,7 @@ public:
}
bool Execute(Event event) override;
bool isUseful() { return bot->GetGuildId() && InviteNearbyToGroupAction::isUseful(); };
bool isUseful() override { return bot->GetGuildId() && InviteNearbyToGroupAction::isUseful(); };
private:
std::vector<Player*> getGuildMembers();