diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index f5d6bc8815..83b2cc6118 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1091,6 +1091,8 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsO if( !IsHumanPlayer(pn) ) return; + Profile *pProf = PROFILEMAN->GetProfile(pn); + CHECKPOINT_M(ssprintf("PlayMode %i",this->m_PlayMode)); switch( this->m_PlayMode ) { @@ -1157,10 +1159,9 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsO } // Find Personal Records - Profile *prof = PROFILEMAN->GetProfile(pn); - if( prof ) + if( pProf ) { - HighScoreList &hsl = prof->GetStepsHighScoreList(pSteps); + HighScoreList &hsl = pProf->GetStepsHighScoreList(pSteps); for( j=0; j &asFeatsO for( i=0; iGetProfile(pn)->GetCategoryHighScoreList( nt, rc ); - for( unsigned j=0; jGetCategoryHighScoreList( nt, rc ); + for( unsigned j=0; j &asFeatsO // Find Personal Records if( PROFILEMAN->IsUsingProfile( pn ) ) { - Profile* pProfile = PROFILEMAN->GetProfile( pn ); - HighScoreList &hsl = pProfile->GetCourseHighScoreList( pCourse, nt ); + HighScoreList &hsl = pProf->GetCourseHighScoreList( pCourse, nt ); for( unsigned i=0; i