aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 911291ff7..75943f33d 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1046,6 +1046,11 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
playlist.length-1);
}
else */randomizeOrder(0,playlist.length-1);
+ if(playlist.current >= 0 &&
+ playlist.current < playlist.length)
+ {
+ swapOrder(playlist.current, 0);
+ }
}
else orderPlaylist();
}