From 2e89c82e2bcc0b0b401dff0a348f39ce3c97fc4d Mon Sep 17 00:00:00 2001 From: MistEO Date: Thu, 1 Sep 2022 00:47:26 +0800 Subject: [PATCH] chore: fix build error --- src/MeoAssistant/BattleProcessTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MeoAssistant/BattleProcessTask.cpp b/src/MeoAssistant/BattleProcessTask.cpp index a7696ca25f..66ef64119e 100644 --- a/src/MeoAssistant/BattleProcessTask.cpp +++ b/src/MeoAssistant/BattleProcessTask.cpp @@ -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( + ranges::count_if(analyzer.get_opers(), [](const auto& oper) -> bool { return oper.cooling; })); if (cooling_count == action.cooling) { break; }