(svn r21265) -Fix [FS#4245]: Don't setup target industry type counts if there are no industry types available.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
alberth 14 years ago
parent 130e2e9f4f
commit d6afbd025c

@ -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;

Loading…
Cancel
Save