diff --git a/src/SongUtil.cpp b/src/SongUtil.cpp index 506b489b0e..a8dff2b3f1 100644 --- a/src/SongUtil.cpp +++ b/src/SongUtil.cpp @@ -475,7 +475,7 @@ void SongUtil::SortSongPointerArrayByGrades( vector &vpSongsInOut, bool b { Song *pSong = vpSongsInOut[i]; - int iCounts[NUM_Grade]; + int iCounts[Grade_NoData + 1]; const Profile *pProfile = PROFILEMAN->GetMachineProfile(); ASSERT( pProfile ); pProfile->GetGrades( pSong, GAMESTATE->GetCurrentStyle()->m_StepsType, iCounts );