From fb5450e234a9e9a78b7e3a1b4ecc3ed31c3dbb93 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 11 Jul 2011 15:43:47 -0400 Subject: [PATCH] Second verse, better than first. --- src/SongUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SongUtil.cpp b/src/SongUtil.cpp index a8dff2b3f1..c13be32f79 100644 --- a/src/SongUtil.cpp +++ b/src/SongUtil.cpp @@ -475,14 +475,14 @@ void SongUtil::SortSongPointerArrayByGrades( vector &vpSongsInOut, bool b { Song *pSong = vpSongsInOut[i]; - int iCounts[Grade_NoData + 1]; + int iCounts[NUM_Grade]; const Profile *pProfile = PROFILEMAN->GetMachineProfile(); ASSERT( pProfile ); pProfile->GetGrades( pSong, GAMESTATE->GetCurrentStyle()->m_StepsType, iCounts ); RString foo; foo.reserve(256); - for( int g=Grade_Tier01; g<=Grade_NoData; ++g ) + for( int g=Grade_Tier01; g<=NUM_Grade; ++g ) AppendOctal( iCounts[g], 3, foo ); vals.push_back( val(pSong, foo) ); }