fix: 自动编队干员选择错误

This commit is contained in:
status102
2025-02-11 21:41:37 +08:00
parent 7799d94699
commit 632ff2b027

View File

@@ -163,7 +163,7 @@ void asst::BattleFormationTask::formation_with_last_opers()
++it;
continue;
}
if (ranges::find_if(opers, [&](const OperGroup& g) { return g.first == it->first; }) != opers.cend()) {
if (ranges::find_if(opers, [&](const OperGroup& g) { return g.first == it->first; }) == opers.cend()) {
it = groups.erase(it);
}
else {