diff --git a/AdaptiveBrightness/monitor_win.cpp b/AdaptiveBrightness/monitor_win.cpp index 5a7af41..2fee52c 100644 --- a/AdaptiveBrightness/monitor_win.cpp +++ b/AdaptiveBrightness/monitor_win.cpp @@ -24,6 +24,8 @@ Monitor::Monitor(Monitor&& other) noexcept other.m_hMonitor = 0; other.m_physicalMonitor.name.clear(); other.m_physicalMonitor.handle = 0; + other.m_brightnessRange.reset(); + other.m_errorOccurred = false; } Monitor::~Monitor()