Changeset - r1269:2e4a4ae1f799
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2005-02-02 19:08:34
truelight@openttd.org
(svn r1773) -Fix: [ 1114950 ] Game crashed sometimes when there were no industries
in the map
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
industry_cmd.c
Show inline comments
 
@@ -1860,7 +1860,7 @@ void IndustryMonthlyLoop(void)
 
	/* 3% chance that we start a new industry */
 
	if (CHANCE16(3, 100)) {
 
		MaybeNewIndustry(Random());
 
	} else if (!_patches.smooth_economy) {
 
	} else if (!_patches.smooth_economy && _total_industries > 0) {
 
		i = GetIndustry(RandomRange(_total_industries));
 
		MaybeCloseIndustry(i);
 
	}
0 comments (0 inline, 0 general)