perf: 自动编队跳过空干员职业组

This commit is contained in:
status102
2025-06-13 15:54:31 +08:00
parent 801afef4e5
commit 13ef0ca3fe

View File

@@ -70,6 +70,9 @@ bool asst::BattleFormationTask::_run()
formation_with_last_opers();
std::vector<OperGroup> missing_operators;
for (auto& [role, oper_groups] : m_formation) {
if(oper_groups.empty()) {
continue; // 干员已编入, 跳过
}
add_formation(role, oper_groups, missing_operators);
}