aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/playlist.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/playlist.c b/src/playlist.c
index ea9f5719c..02800c2ba 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1146,11 +1146,7 @@ static void randomizeOrder(int start, int end)
void setPlaylistRandomStatus(int status)
{
- int statusWas = playlist.random;
-
- playlist.random = status;
-
- if (status != statusWas) {
+ if (status != playlist.random) {
if (playlist.random)
randomizeOrder(0, playlist.length - 1);
else