mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: 修复一个罕见的肉鸽崩溃情况
This commit is contained in:
@@ -170,6 +170,9 @@ bool asst::BattleImageAnalyzer::opers_analyze()
|
||||
if (cooling_rect.x + cooling_rect.width >= m_image.cols) {
|
||||
cooling_rect.width = m_image.cols - cooling_rect.x;
|
||||
}
|
||||
if (cooling_rect.y + cooling_rect.height >= m_image.rows) {
|
||||
cooling_rect.height = m_image.rows - cooling_rect.y;
|
||||
}
|
||||
oper.cooling = oper_cooling_analyze(cooling_rect);
|
||||
if (oper.cooling && oper.available) {
|
||||
Log.error("oper is available, but with cooling");
|
||||
|
||||
Reference in New Issue
Block a user