CustomColors: fix off-by-one bug
authorMax Kellermann <max@musicpd.org>
Wed, 12 Sep 2018 15:43:53 +0000 (17:43 +0200)
committerMax Kellermann <max@musicpd.org>
Wed, 12 Sep 2018 15:43:58 +0000 (17:43 +0200)
src/CustomColors.cxx

index 5bfde65..552b48c 100644 (file)
@@ -58,6 +58,6 @@ ApplyCustomColors()
        }
 
        for (const auto &i : custom_colors)
-               if (i.color <= COLORS)
+               if (i.color < COLORS)
                        init_color(i.color, i.r, i.g, i.b);
 }