patch from np for orderPlaylist()

git-svn-id: https://svn.musicpd.org/mpd/trunk@1673 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-06-26 04:34:28 +00:00
parent be37cb02f2
commit 188011ac52

View File

@ -1090,7 +1090,9 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
void orderPlaylist() {
int i;
playlist.current = playlist.order[playlist.current];
if(playlist.current >= 0 && playlist.current < playlist.length) {
playlist.current = playlist.order[playlist.current];
}
if(playlist_state==PLAYLIST_STATE_PLAY) {
if(playlist.queued>=0) {