diff --git a/src/playlist.c b/src/playlist.c index a8094925d..1e8ab890f 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -767,12 +767,12 @@ int deleteFromPlaylist(FILE * fp, int song) { playlist_noGoToNext = 1; } - if(playlist.current>=playlist.length) { - incrPlaylistCurrent(); - } - else if(playlist.current>songOrder) { + if(playlist.current>songOrder) { playlist.current--; } + else if(playlist.current>=playlist.length) { + incrPlaylistCurrent(); + } if(playlist.queued>songOrder) { playlist.queued--;