From 808665c9792b6b402a8ecc2ee04bd6b76ae0a20d Mon Sep 17 00:00:00 2001 From: MistEO Date: Sun, 21 May 2023 01:26:14 +0800 Subject: [PATCH] fix: build error --- src/MaaCore/Controller/ControlScaleProxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Controller/ControlScaleProxy.h b/src/MaaCore/Controller/ControlScaleProxy.h index 3a9cc8a067..0bd9b3df65 100644 --- a/src/MaaCore/Controller/ControlScaleProxy.h +++ b/src/MaaCore/Controller/ControlScaleProxy.h @@ -40,12 +40,12 @@ namespace asst void callback(const json::object& details); std::shared_ptr m_controller; - ProxyCallback m_callback; + ControllerType m_controller_type = ControllerType::Minitouch; + ProxyCallback m_callback = nullptr; std::minstd_rand m_rand_engine; std::pair m_scale_size = { WindowWidthDefault, WindowHeightDefault }; double m_control_scale = 1.0; - ControllerType m_controller_type = ControllerType::Minitouch; }; }