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

pull/155/head
alberth 14 years ago
parent 850d05d24d
commit 73364915f1

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