Changed GameState::UnjoinPlayer to actually follow its own comment and unjoin the player from STATSMAN first, instead of unjoining from PROFILEMAN, then STATSMAN, then PROFILEMAN again. Changed ProfileManager::UnloadProfile to skip unloading if the profile wasn't actually loaded in the first place.

This commit is contained in:
Kyzentun
2014-03-10 21:54:53 -06:00
parent a428e16cc8
commit 27dc958970
3 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ bool ScreenSelectProfile::SetProfileIndex( PlayerNumber pn, int iProfileIndex )
// unload player
if( iProfileIndex == -2 )
{
PROFILEMAN->UnloadProfile( pn );
// GAMESTATE->UnjoinPlayer takes care of unloading the profile.
GAMESTATE->UnjoinPlayer( pn );
MEMCARDMAN->UnlockCard( pn );
MEMCARDMAN->UnmountCard( pn );