# HG changeset patch # User rubidium # Date 1194103286 0 # Node ID cb66ab66219525622933b560f90f422042f71597 # Parent 5f3f3187534189e43830cd6902320106d7233528 (svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in. diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1841,7 +1841,7 @@ /* oil wells (or the industries with that flag set) are always allowed to closedown */ if (indspec->behaviour & INDUSTRYBEH_DONT_INCR_PROD && _opt.landscape == LT_TEMPERATE) return false; - return (indspec->behaviour & INDUSTRYBEH_CANCLOSE_LASTINSTANCE && GetIndustryTypeCount(type) <= 1); + return (indspec->behaviour & INDUSTRYBEH_CANCLOSE_LASTINSTANCE) == 0 && GetIndustryTypeCount(type) <= 1; } /** Change industry production or do closure