@@ -491,11 +491,11 @@ bool IsValidConsoleColour(TextColour c)
if (!(c & TC_IS_PALETTE_COLOUR)) return TC_BEGIN <= c && c < TC_END;
/* A text colour from the palette is used; must be the company
* colour gradient, so it must be one of those. */
c &= ~TC_IS_PALETTE_COLOUR;
for (Colours i = COLOUR_BEGIN; i < COLOUR_END; i++) {
if (GetColourGradient(i, SHADE_4) == c) return true;
if (GetColourGradient(i, SHADE_NORMAL) == c) return true;
}
return false;