Changeset - r14581:95adc72db830
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2010-02-20 16:17:45
frosch@openttd.org
(svn r19167) -Fix [FS#3631](r19120): Industry 0 could be choosen even if not available.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1903,7 +1903,7 @@ void GenerateIndustries()
 
	for (uint i = 0; i < total_amount; i++) {
 
		uint32 r = RandomRange(total_prob);
 
		IndustryType it = 0;
 
		while (it < NUM_INDUSTRYTYPES && r > industry_probs[it]) {
 
		while (it < NUM_INDUSTRYTYPES && r >= industry_probs[it]) {
 
			r -= industry_probs[it];
 
			it++;
 
		}
0 comments (0 inline, 0 general)