Changeset - r16529:bdbae03d323c
[Not reviewed]
master
0 1 0
alberth - 14 years ago 2010-11-20 12:20:59
alberth@openttd.org
(svn r21265) -Fix [FS#4245]: Don't setup target industry type counts if there are no industry types available.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -2137,6 +2137,8 @@ void IndustryBuildData::SetupTargetCount
 
		total_prob += ibd->probability;
 
	}
 

	
 
	if (total_prob == 0) return; // No buildable industries.
 

	
 
	/* Subtract forced industries from the number of industries available for construction. */
 
	total_amount = (total_amount <= force_build) ? 0 : total_amount - force_build;
 

	
0 comments (0 inline, 0 general)