Achievements: Add missing lock to GetPauseThrottleFrames()

pull/3691/head
Stenzek 8 months ago
parent 8643068870
commit ddcc2e0878
No known key found for this signature in database

@ -2316,7 +2316,11 @@ bool Achievements::DownloadGameIcons(ProgressCallback* progress, Error* error)
u32 Achievements::GetPauseThrottleFrames()
{
if (!IsActive() || !IsHardcoreModeActive())
if (!IsActive())
return 0;
const auto lock = GetLock();
if (!IsHardcoreModeActive())
return 0;
u32 frames_remaining = 0;

Loading…
Cancel
Save