chore: Update src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
uye
2026-02-25 23:21:38 +08:00
committed by GitHub
parent 7ddb8234f7
commit 5d7ea00ff5

View File

@@ -310,7 +310,12 @@ BattlefieldMatcher::MatchResult<std::pair<int, int>> 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 {};
}