mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-19 13:41:11 +00:00
(svn r13) Fix #972087 - minimap crash
This commit is contained in:
parent
a9413b12a2
commit
f2623b5ee9
@ -351,7 +351,8 @@ static void DrawSmallMapContours(byte *dst, uint xc, uint yc, int pitch, int rep
|
||||
{
|
||||
do {
|
||||
if (xc < TILE_X_MAX && yc < TILE_Y_MAX)
|
||||
WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask );
|
||||
if (dst > _screen.dst_ptr && dst < (_screen.dst_ptr + _screen.width * _screen.height - _screen.width) )
|
||||
WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask );
|
||||
} while (xc++,yc++,dst+=pitch,--reps != 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user