fix crash when no profile is loaded

This commit is contained in:
Glenn Maynard
2004-02-09 19:39:21 +00:00
parent 445c953785
commit 16d24616f0
+3 -1
View File
@@ -1157,8 +1157,10 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector<RankingFeats> &asFeatsO
}
// Find Personal Records
Profile *prof = PROFILEMAN->GetProfile(pn);
if( prof )
{
HighScoreList &hsl = PROFILEMAN->GetProfile(pn)->GetStepsHighScoreList(pSteps);
HighScoreList &hsl = prof->GetStepsHighScoreList(pSteps);
for( j=0; j<hsl.vHighScores.size(); j++ )
{
HighScore &hs = hsl.vHighScores[j];