Changeset - r12:429cee99824e
[Not reviewed]
master
0 1 0
truelight - 20 years ago 2004-08-10 17:23:21
truelight@openttd.org
(svn r13) Fix #972087 - minimap crash
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
smallmap_gui.c
Show inline comments
 
@@ -351,6 +351,7 @@ static void DrawSmallMapContours(byte *d
 
{
 
	do {
 
		if (xc < TILE_X_MAX && yc < TILE_Y_MAX)
 
		    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);
 
}
0 comments (0 inline, 0 general)