Fix crash when less than 30 played songs.
This commit is contained in:
@@ -477,6 +477,7 @@ void MusicWheel::BuildWheelItemDatas( CArray<WheelItemData, WheelItemData&> &arr
|
|||||||
// break;
|
// break;
|
||||||
case SORT_MOST_PLAYED:
|
case SORT_MOST_PLAYED:
|
||||||
SortSongPointerArrayByMostPlayed( arraySongs );
|
SortSongPointerArrayByMostPlayed( arraySongs );
|
||||||
|
if( arraySongs.GetSize() > 30 )
|
||||||
arraySongs.SetSize( 30 );
|
arraySongs.SetSize( 30 );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user