mirror of
https://github.com/stenzek/duckstation.git
synced 2026-11-15 18:50:36 +01:00
Achievements: Add missing lock to GetPauseThrottleFrames()
This commit is contained in:
1 file changed
+5
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user