diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 94a3afe05f..da8550915a 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -469,13 +469,21 @@ XNode* Profile::SaveGeneralDataCreateNode() const { XNode* pNumSongsPlayedByPlayMode = pGeneralDataNode->AppendChild("NumSongsPlayedByPlayMode"); FOREACH_PlayMode( pm ) + { + /* Don't save unplayed PlayModes. */ + if( !m_iNumSongsPlayedByPlayMode[pm] ) + continue; pNumSongsPlayedByPlayMode->AppendChild( PlayModeToString(pm), m_iNumSongsPlayedByPlayMode[pm] ); + } } { XNode* pNumSongsPlayedByStyle = pGeneralDataNode->AppendChild("NumSongsPlayedByStyle"); for( int i=0; iGetStyleDefForStyle((Style)i)->m_szName; pNumSongsPlayedByStyle->AppendChild( sStyle, m_iNumSongsPlayedByStyle[i] ); }