diff --git a/src/MaaCore/Controller/Controller.cpp b/src/MaaCore/Controller/Controller.cpp index 30467585f7..1ab35323d7 100644 --- a/src/MaaCore/Controller/Controller.cpp +++ b/src/MaaCore/Controller/Controller.cpp @@ -55,6 +55,8 @@ void asst::Controller::clear_info() noexcept { m_uuid.clear(); m_scale_size = { WindowWidthDefault, WindowHeightDefault }; + m_controller = nullptr; + m_scale_proxy = nullptr; } void asst::Controller::callback(AsstMsg msg, const json::value& details)