Changeset - r21882:baa62a870d21
[Not reviewed]
master
0 1 0
rubidium - 10 years ago 2014-10-23 10:50:34
rubidium@openttd.org
(svn r27036) -Fix [FS#6148] (r26928): crash when changing smallmap colour when the smallmap window has not been opened yet
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -279,6 +279,9 @@ static SmallMapColourScheme _heightmap_s
 
 */
 
void BuildLandLegend()
 
{
 
	/* The smallmap window has never been initialized, so no need to change the legend. */
 
	if (_heightmap_schemes[0].height_colours == NULL) return;
 

	
 
	/*
 
	 * The general idea of this function is to fill the legend with an appropriate evenly spaced
 
	 * selection of height levels. All entries with STR_TINY_BLACK_HEIGHT are reserved for this.
0 comments (0 inline, 0 general)