(svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads.

This commit is contained in:
frosch
2009-12-03 15:27:33 +00:00
parent 57bcb5f903
commit 48efc698bb
2 changed files with 11 additions and 3 deletions

View File

@@ -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,