aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 8a7b5cf7f..ad81e1cb6 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1147,7 +1147,7 @@ static void randomizeOrder(int start, int end)
void setPlaylistRandomStatus(int status)
{
if (status != playlist.random) {
- if (playlist.random)
+ if ((playlist.random = status))
randomizeOrder(0, playlist.length - 1);
else
orderPlaylist();