From 16d24616f0ec339e786fa329d748bb72a72a92ba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 9 Feb 2004 19:39:21 +0000 Subject: [PATCH] fix crash when no profile is loaded --- stepmania/src/GameState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 066ec73594..f18980c910 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1157,8 +1157,10 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &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