From a1ab9d1771dd3254e4cc5c04687dce7e6574104c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 14 Mar 2004 03:40:51 +0000 Subject: [PATCH] better output --- stepmania/src/Profile.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 1a3a567190..74fccd2dcd 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -930,11 +930,21 @@ void Profile::LoadSongScoresFromNode( const XNode* pNode ) WARN_AND_CONTINUE; pSteps = pSong->GetStepsByDescription( st, sDescription ); + if( pSteps == NULL ) + { + LOG->Trace("Edit steps \"%s\" missing in song \"%s\"; scoring data will be lost", sDescription.c_str(), sSongDir.c_str() ); + continue; + } } else + { pSteps = pSong->GetStepsByDifficulty( st, dc ); - if( pSteps == NULL ) - WARN_AND_CONTINUE; + if( pSteps == NULL ) + { + LOG->Trace("\"%s\" steps missing in song \"%s\"; scoring data will be lost", DifficultyToString(dc).c_str(), sSongDir.c_str() ); + continue; + } + } XNode *pHighScoreListNode = (*steps)->GetChild("HighScoreList"); if( pHighScoreListNode == NULL )