queue/PlaylistEdit: fix inverted check

Regression by commit 471c37be59

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1135
This commit is contained in:
Max Kellermann 2021-05-28 13:55:40 +02:00
parent 38bfef7d0b
commit 36410daaa4

View File

@ -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;