feat: fix warning

This commit is contained in:
Yunfan Li
2023-05-24 19:44:53 +08:00
parent c16e587854
commit 429dc03100
7 changed files with 11 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ GuidVector AttackersValue::Calculate()
GuidVector result;
if (!botAI->AllowActivity(ALL_ACTIVITY))
return std::move(result);
return result;
AddAttackersOf(bot, targets);
@@ -30,7 +30,7 @@ GuidVector AttackersValue::Calculate()
if (bot->duel && bot->duel->Opponent)
result.push_back(bot->duel->Opponent->GetGUID());
return std::move(result);
return result;
}
void AttackersValue::AddAttackersOf(Group* group, std::set<Unit*>& targets)