# HG changeset patch # User rubidium # Date 2007-11-03 15:21:26 # Node ID fa78d014e724956374b7b10253659ccb38f42b19 # Parent 5ec63e440cf45982cbf9b27f28c183861bbe7576 (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 @@ static bool CheckIndustryCloseDownProtec /* 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