allow GetProfile even if not using local profile or memory card

This commit is contained in:
Chris Danford
2005-04-26 03:32:08 +00:00
parent 9eddaaf860
commit 4f23083ebc
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -268,10 +268,7 @@ const Profile* ProfileManager::GetProfile( PlayerNumber pn ) const
{
ASSERT( pn >= 0 && pn<NUM_PLAYERS );
if( m_sProfileDir[pn].empty() )
return NULL;
else
return &m_Profile[pn];
return &m_Profile[pn];
}
CString ProfileManager::GetPlayerName( PlayerNumber pn ) const
+1 -1
View File
@@ -49,7 +49,7 @@ public:
bool IsUsingProfile( PlayerNumber pn ) const { return !m_sProfileDir[pn].empty(); }
bool IsUsingProfile( ProfileSlot slot ) const;
const Profile* GetProfile( PlayerNumber pn ) const;
const Profile* GetProfile( PlayerNumber pn ) const; // return a profile even if !IsUsingProfile
Profile* GetProfile( PlayerNumber pn ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(pn); }
const Profile* GetProfile( ProfileSlot slot ) const;
Profile* GetProfile( ProfileSlot slot ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(slot); }