From f8491407d01175048629a88f7dbd000108a3ed1a Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 30 May 2007 01:55:11 +0000 Subject: (svn r9983) -Codechange: Use the "enabled" property of the industry spec. --- src/smallmap_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/smallmap_gui.cpp') diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index e0a13991f..10452b5cf 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -146,7 +146,7 @@ void BuildIndustriesLegend() /* Add each name */ for (IndustryType i = 0; i < NUM_INDUSTRYTYPES; i++) { indsp = GetIndustrySpec(i); - if (HASBIT(indsp->climate_availability, _opt.landscape)) { + if (indsp->enabled) { _legend_from_industries[j].legend = indsp->name; _legend_from_industries[j].colour = indsp->map_colour; _legend_from_industries[j].col_break = (j % 6) == 0; // break is performed on the 7th item -- cgit v1.2.3-54-g00ecf