From 94a8e01543a420bf70b6eef2539fea46466f2699 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Wed, 15 Jan 2025 20:18:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=AA=E5=9B=BE=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E6=B8=85=E7=A9=BAimage=5Fpayload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Controller/AdbController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index 628ce07554..93e3eacb19 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -510,6 +510,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect return true; }; + image_payload = {}; if (m_adb.screencap_method == AdbProperty::ScreencapMethod::UnknownYet) { Log.info("Try to find the fastest way to screencap"); auto min_cost = milliseconds(LLONG_MAX);