(svn r21897) -Fix (21707): Kenobi visited IsValidConsoleColour shortly

This commit is contained in:
rubidium
2011-01-23 00:11:15 +00:00
parent 4f291ca982
commit 86ba528906
2 changed files with 4 additions and 3 deletions

View File

@@ -509,7 +509,7 @@ bool IsValidConsoleColour(TextColour c)
/* 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 (uint i = TC_BEGIN; i < TC_END; i++) {
for (uint i = COLOUR_BEGIN; i < COLOUR_END; i++) {
if (_colour_gradient[i][4] == c) return true;
}