summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 798a484b4..df240f0b6 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2103,7 +2103,7 @@ void IndustryBuildData::TryBuildNewIndustry()
}
}
- if (missing <= 0 || total_prob == 0) count = 0; // Skip creation of an industry.
+ if (EconomyIsInRecession() || missing <= 0 || total_prob == 0) count = 0; // Skip creation of an industry.
if (count >= 1) {
/* Pick a weighted random industry to build.