Mercurial > hg > openttd
changeset 17076:37b1c0eebb05 draft
(svn r21813) -Fix [FS#4411](r21720): Prevent crash when displaying the owner view.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Sat, 15 Jan 2011 20:23:15 +0000 |
parents | 7ac0e0454f5f |
children | 5a60038ce980 |
files | src/smallmap_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -544,7 +544,7 @@ */ } - 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) {