From 0549fd03471e30ecf8dbc011d0abfb67fa80ccb2 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Wed, 15 Jan 2025 23:28:21 +0800 Subject: [PATCH] fix: 94a8e01543a420bf70b6eef2539fea46466f2699 --- src/MaaCore/Controller/AdbController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index 93e3eacb19..96f1e0c478 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -510,7 +510,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect return true; }; - image_payload = {}; + image_payload = cv::Mat(); // 清空缓存 if (m_adb.screencap_method == AdbProperty::ScreencapMethod::UnknownYet) { Log.info("Try to find the fastest way to screencap"); auto min_cost = milliseconds(LLONG_MAX);