From 0de833236640a8ffc1bc0edff3b7b4f9a6c8612a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 23 Jan 2011 00:11:15 +0000 Subject: (svn r21897) -Fix (21707): Kenobi visited IsValidConsoleColour shortly --- src/console_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/console_gui.cpp') diff --git a/src/console_gui.cpp b/src/console_gui.cpp index dd3f065ef..87e2869e7 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -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; } -- cgit v1.2.3-70-g09d2