diff --git a/src/MaaCore/Controller/Controller.h b/src/MaaCore/Controller/Controller.h index d7e6108b75..c04db54bc7 100644 --- a/src/MaaCore/Controller/Controller.h +++ b/src/MaaCore/Controller/Controller.h @@ -76,19 +76,19 @@ namespace asst void clear_info() noexcept; void callback(AsstMsg msg, const json::value& details); - AsstCallback m_callback; + AsstCallback m_callback = nullptr; std::minstd_rand m_rand_engine; - asst::PlatformType m_platform_type = PlatformType::Native; + PlatformType m_platform_type = PlatformType::Native; - asst::ControllerType m_controller_type = ControllerType::Minitouch; + ControllerType m_controller_type = ControllerType::Minitouch; std::shared_ptr m_controller = nullptr; std::unique_ptr m_controller_factory = nullptr; - std::shared_ptr m_scale_proxy = nullptr; + std::shared_ptr m_scale_proxy = nullptr; std::string m_uuid;