diff --git a/src/strategy/actions/InviteToGroupAction.cpp b/src/strategy/actions/InviteToGroupAction.cpp index 09b2487d..89b8122c 100644 --- a/src/strategy/actions/InviteToGroupAction.cpp +++ b/src/strategy/actions/InviteToGroupAction.cpp @@ -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); diff --git a/src/strategy/actions/InviteToGroupAction.h b/src/strategy/actions/InviteToGroupAction.h index 864af116..04168ddb 100644 --- a/src/strategy/actions/InviteToGroupAction.h +++ b/src/strategy/actions/InviteToGroupAction.h @@ -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 getGuildMembers();