Changeset - r17066:3f709cb651e8
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2011-01-15 20:23:15
terkhen@openttd.org
(svn r21813) -Fix [FS#4411](r21720): Prevent crash when displaying the owner view.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -544,7 +544,7 @@ static inline uint32 GetSmallMapOwnerPix
 
		 */
 
	}
 

	
 
	if ((o <= MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE) {
 
	if ((o < MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE) {
 
		const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
 
		return _smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour;
 
	} else if (o == OWNER_WATER) {
0 comments (0 inline, 0 general)