diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index aa75c2716..7e6f0e47f 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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++; } |