fix crash when no profile is loaded
This commit is contained in:
@@ -1157,8 +1157,10 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector<RankingFeats> &asFeatsO
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find Personal Records
|
// 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++ )
|
for( j=0; j<hsl.vHighScores.size(); j++ )
|
||||||
{
|
{
|
||||||
HighScore &hs = hsl.vHighScores[j];
|
HighScore &hs = hsl.vHighScores[j];
|
||||||
|
|||||||
Reference in New Issue
Block a user