(svn r23033) -Fix [FS#4776]: the last custom playlist items went lost when the files in the .obm are not contiguous

pull/155/head
rubidium 13 years ago
parent ac5adda8df
commit 75414c3bcd

@ -84,7 +84,8 @@ static byte * const _playlists[] = {
void ValidatePlaylist(byte *playlist)
{
while (*playlist != 0) {
if (*playlist <= BaseMusic::GetUsedSet()->num_available) {
/* Song indices are saved off-by-one so 0 is "nothing". */
if (*playlist <= NUM_SONGS_AVAILABLE && !StrEmpty(GetSongName(*playlist - 1))) {
playlist++;
continue;
}

Loading…
Cancel
Save