1
0
Fork 0

(svn r21813) -Fix [FS#4411](r21720): Prevent crash when displaying the owner view.

release/1.1
terkhen 2011-01-15 20:23:15 +00:00
parent a1df4bea68
commit 4d8a93c870
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ static inline uint32 GetSmallMapOwnerPixels(TileIndex tile, TileType t)
*/ */
} }
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]; const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
return _smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour; return _smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour;
} else if (o == OWNER_WATER) { } else if (o == OWNER_WATER) {