Commit 5bd18af7 authored by Warren Dukes's avatar Warren Dukes

forget to set playlist.current = 0 when toggling random

and doing swapOrder(playlist.current, 0) git-svn-id: https://svn.musicpd.org/mpd/trunk@1480 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 17c13ea0
...@@ -1156,6 +1156,7 @@ int setPlaylistRandomStatus(FILE * fp, int status) { ...@@ -1156,6 +1156,7 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
playlist.current < playlist.length) playlist.current < playlist.length)
{ {
swapOrder(playlist.current, 0); swapOrder(playlist.current, 0);
playlist.current = 0;
} }
} }
else orderPlaylist(); else orderPlaylist();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment