From ae3638121c497c260296f3194fc83149b560c17a Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 2 Feb 2005 19:15:35 +0000 Subject: (svn r1774) -Fix: fixed an other possible crash related to previous commit --- industry_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'industry_cmd.c') diff --git a/industry_cmd.c b/industry_cmd.c index 865d0e02d..1e1c5e7f5 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1862,7 +1862,8 @@ void IndustryMonthlyLoop(void) MaybeNewIndustry(Random()); } else if (!_patches.smooth_economy && _total_industries > 0) { i = GetIndustry(RandomRange(_total_industries)); - MaybeCloseIndustry(i); + if (i->xy != 0) + MaybeCloseIndustry(i); } _current_player = old_player; -- cgit v1.2.3-54-g00ecf