fix: ranges::count_if 的返回类型问题

This commit is contained in:
zzyyyl
2023-11-23 16:34:00 +08:00
committed by GitHub
parent 02662663bf
commit f18fe952ee

View File

@@ -104,8 +104,7 @@ bool asst::SSSBattleProcessTask::wait_until_start(bool weak)
}
else {
replace_count = 4;
int pioneer_count = ranges::count_if(opers, [](const auto& oper) { return oper.role == Role::Pioneer; }); // 先锋数量
if (pioneer_count < 2) {
if (ranges::count_if(opers, [](const auto& oper) { return oper.role == Role::Pioneer; }) /* 先锋数量 */ < 2) {
cost_limit = 25; // 先锋低于2个时降低费用阈值以试图换出先锋
}
}