Stop array out-of-bounds exception.

Alright, that's it: I'm getting cppcheck.
This commit is contained in:
Jason Felds
2011-07-11 12:27:12 -04:00
parent 807c933393
commit 7b377d836d
+1 -1
View File
@@ -475,7 +475,7 @@ void SongUtil::SortSongPointerArrayByGrades( vector<Song*> &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 );