From 5d7ea00ff596d2a8a896f548c190da0249e7671b Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:21:38 +0800 Subject: [PATCH] chore: Update src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp b/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp index 1563c0281a..f6347abebf 100644 --- a/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp +++ b/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp @@ -310,7 +310,12 @@ BattlefieldMatcher::MatchResult> BattlefieldMatcher::kills_a } if (kills_text.length() <= pos + 1) { - Log.error("kills_text length is too short"); + Log.error( + "kills_text length is too short: text='{}', length={}, pos={}", + kills_text, + kills_text.size(), + pos + ); return {}; }