industry_cmd.c
changeset 1269 0c8818a1c07a
parent 1267 ba42a505ab8a
child 1270 a084b84eb971
--- a/industry_cmd.c	Wed Feb 02 18:28:08 2005 +0000
+++ b/industry_cmd.c	Wed Feb 02 19:08:34 2005 +0000
@@ -1860,7 +1860,7 @@
 	/* 3% chance that we start a new industry */
 	if (CHANCE16(3, 100)) {
 		MaybeNewIndustry(Random());
-	} else if (!_patches.smooth_economy) {
+	} else if (!_patches.smooth_economy && _total_industries > 0) {
 		i = GetIndustry(RandomRange(_total_industries));
 		MaybeCloseIndustry(i);
 	}