summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-12-03 15:27:33 +0000
committerfrosch <frosch@openttd.org>2009-12-03 15:27:33 +0000
commit169141433a100c34a79f766fcfceb41037fea04f (patch)
treea527826b12be3f25b89a91949d37b86a4be14369 /src/gfx.cpp
parent3addf58f30c2dd4fa850611af11d7a897989722b (diff)
downloadopenttd-169141433a100c34a79f766fcfceb41037fea04f.tar.xz
(svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads.
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 7fab69db3..5247daccb 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -70,7 +70,7 @@ static ReusableBuffer<uint8> _cursor_backup;
*/
static Rect _invalid_rect;
static const byte *_colour_remap_ptr;
-static byte _string_colourremap[3];
+static byte _string_colourremap[3]; ///< Recoloursprite for stringdrawing. The grf loader ensures, that ST_FONT sprites only use colours 0 to 2.
enum {
DIRTY_BLOCK_HEIGHT = 8,