From 36410daaa4247e204d74f20aa4d9801f9bada3b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 28 May 2021 13:55:40 +0200 Subject: [PATCH] queue/PlaylistEdit: fix inverted check Regression by commit 471c37be59bcf19ecd02bf8002a8253ae1f65dc9 Closes https://github.com/MusicPlayerDaemon/MPD/issues/1135 --- src/queue/PlaylistEdit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx index 1002d73e6..8816d4a0e 100644 --- a/src/queue/PlaylistEdit.cxx +++ b/src/queue/PlaylistEdit.cxx @@ -384,7 +384,7 @@ playlist::Shuffle(PlayerControl &pc, RangeArg range) if (!range.CheckClip(GetLength())) throw PlaylistError::BadRange(); - if (range.HasAtLeast(2)) + if (!range.HasAtLeast(2)) /* needs at least two entries. */ return;