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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user