mirror of https://github.com/OpenTTD/OpenTTD
(svn r1774) -Fix: fixed an other possible crash related to previous commit
parent
74df79331d
commit
ae3638121c
|
@ -1862,7 +1862,8 @@ void IndustryMonthlyLoop(void)
|
||||||
MaybeNewIndustry(Random());
|
MaybeNewIndustry(Random());
|
||||||
} else if (!_patches.smooth_economy && _total_industries > 0) {
|
} else if (!_patches.smooth_economy && _total_industries > 0) {
|
||||||
i = GetIndustry(RandomRange(_total_industries));
|
i = GetIndustry(RandomRange(_total_industries));
|
||||||
MaybeCloseIndustry(i);
|
if (i->xy != 0)
|
||||||
|
MaybeCloseIndustry(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
_current_player = old_player;
|
_current_player = old_player;
|
||||||
|
|
Loading…
Reference in New Issue