From ddae9b2242a100eaa3cde16191ba72233099a643 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 6 Feb 2005 09:58:50 +0000 Subject: [PATCH] unload all profiles on reset, not just ones loaded from memory cards; fixes wrong profile being used when a card is inserted too late and a new game starts (local profile was already loaded) --- stepmania/src/GameState.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 192f0ecce5..30936fa941 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -157,8 +157,7 @@ void GameState::Reset() ResetStageStatistics(); FOREACH_PlayerNumber( pn ) - if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) ) - PROFILEMAN->UnloadProfile( pn ); + PROFILEMAN->UnloadProfile( pn ); SONGMAN->FreeAllLoadedFromProfiles(); SONGMAN->UpdateBest();