Clear active challenges when game closes

Failing to do this was causing challenge icons to carry over into the next game if a game was closed while the icons were active, even if the next game to run was a completely different game entirely with completely different badges.
This commit is contained in:
LillyJadeKatrin 2024-02-26 22:21:05 -05:00
parent 5090a028e6
commit 56b82e764c

View File

@ -908,6 +908,7 @@ void AchievementManager::CloseGame()
if (m_is_game_loaded) if (m_is_game_loaded)
{ {
m_is_game_loaded = false; m_is_game_loaded = false;
m_active_challenges.clear();
ActivateDeactivateAchievements(); ActivateDeactivateAchievements();
ActivateDeactivateLeaderboards(); ActivateDeactivateLeaderboards();
ActivateDeactivateRichPresence(); ActivateDeactivateRichPresence();