From 3607c1dc7db900e6720ba363353368dec137bc8b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 24 Jan 2023 17:20:06 -0500 Subject: [PATCH] CoreTiming: Zero initialize all CoreTimingManager throttle members Gives two members without explicit initialization default values to be consistent with the rest of the class and also ensuring deterministic values on construction. --- Source/Core/Core/CoreTiming.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/CoreTiming.h b/Source/Core/Core/CoreTiming.h index 54b2b54e2e..d028550696 100644 --- a/Source/Core/Core/CoreTiming.h +++ b/Source/Core/Core/CoreTiming.h @@ -183,8 +183,8 @@ private: s64 m_throttle_last_cycle = 0; TimePoint m_throttle_deadline = Clock::now(); - s64 m_throttle_clock_per_sec; - s64 m_throttle_min_clock_per_sleep; + s64 m_throttle_clock_per_sec = 0; + s64 m_throttle_min_clock_per_sleep = 0; bool m_throttle_disable_vi_int = false; void ResetThrottle(s64 cycle);