mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r1774) -Fix: fixed an other possible crash related to previous commit
This commit is contained in:
parent
42c3de1459
commit
08e3e9cead
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user