mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
perf: reduce warning
[skip changelog]
This commit is contained in:
@@ -33,10 +33,9 @@ bool asst::RoguelikeShoppingTaskPlugin::_run()
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
OCRer analyzer;
|
||||
analyzer.set_task_info("RoguelikeTraderShoppingOcr");
|
||||
auto image = ctrler()->get_image();
|
||||
analyzer.set_image(image);
|
||||
OCRer analyzer(image);
|
||||
analyzer.set_task_info("RoguelikeTraderShoppingOcr");
|
||||
if (!analyzer.analyze()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user