playlist: corrected shuffle underflow test

Check for current>=0, not queued>=0.
This commit is contained in:
Max Kellermann 2009-01-22 20:10:17 +01:00
parent 1f8a1cbc08
commit d5dcd0ed66

View File

@ -1161,12 +1161,12 @@ void shufflePlaylist(void)
if (playlist.length > 1) {
if (playlist_state == PLAYLIST_STATE_PLAY) {
if (playlist.queued >= 0) {
if (playlist.queued >= 0)
clearPlayerQueue();
if (playlist.current >= 0)
/* put current playing song first */
swapSongs(0, playlist.order[playlist.current]);
}
if (playlist.random) {
int j;