aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-14 17:01:40 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-14 17:01:40 +0000
commit5bd18af7752057ac416ab757a2f6011f34130c42 (patch)
treeba9c65186cf8d44f99f857e7af52d3fd13ad6a0b /src
parent17c13ea0e8971049b457404db79d9906a2ef8ec6 (diff)
downloadmpd-5bd18af7752057ac416ab757a2f6011f34130c42.tar.gz
mpd-5bd18af7752057ac416ab757a2f6011f34130c42.tar.xz
mpd-5bd18af7752057ac416ab757a2f6011f34130c42.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 1e8ab890f..3da74754a 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1156,6 +1156,7 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
playlist.current < playlist.length)
{
swapOrder(playlist.current, 0);
+ playlist.current = 0;
}
}
else orderPlaylist();