mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore: fix build error
This commit is contained in:
@@ -468,8 +468,8 @@ bool asst::BattleProcessTask::wait_condition(const BattleAction& action)
|
||||
BattleImageAnalyzer analyzer(image);
|
||||
analyzer.set_target(BattleImageAnalyzer::Target::Oper);
|
||||
if (analyzer.analyze()) {
|
||||
int cooling_count =
|
||||
ranges::count_if(analyzer.get_opers(), [](const auto& oper) -> bool { return oper.cooling; });
|
||||
int cooling_count = static_cast<int>(
|
||||
ranges::count_if(analyzer.get_opers(), [](const auto& oper) -> bool { return oper.cooling; }));
|
||||
if (cooling_count == action.cooling) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user