diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 64085cfb0b..ccfa512e6f 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -493,13 +493,21 @@ XNode* Profile::SaveGeneralDataCreateNode() const { XNode* pNumSongsPlayedByDifficulty = pGeneralDataNode->AppendChild("NumSongsPlayedByDifficulty"); FOREACH_Difficulty( dc ) + { + if( !m_iNumSongsPlayedByDifficulty[dc] ) + continue; pNumSongsPlayedByDifficulty->AppendChild( DifficultyToString(dc), m_iNumSongsPlayedByDifficulty[dc] ); + } } { XNode* pNumSongsPlayedByMeter = pGeneralDataNode->AppendChild("NumSongsPlayedByMeter"); for( int i=0; iAppendChild( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] ); + } } return pGeneralDataNode;