mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1774) -Fix: fixed an other possible crash related to previous commit
This commit is contained in:
parent
74df79331d
commit
ae3638121c
@ -1862,6 +1862,7 @@ void IndustryMonthlyLoop(void)
|
||||
MaybeNewIndustry(Random());
|
||||
} else if (!_patches.smooth_economy && _total_industries > 0) {
|
||||
i = GetIndustry(RandomRange(_total_industries));
|
||||
if (i->xy != 0)
|
||||
MaybeCloseIndustry(i);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user