Stop array out-of-bounds exception.
Alright, that's it: I'm getting cppcheck.
This commit is contained in:
+1
-1
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user