From b742fae1c6f1f1feb877b5470023400df99967f4 Mon Sep 17 00:00:00 2001 From: phyzical Date: Mon, 17 Jan 2022 17:58:09 +0800 Subject: [PATCH] Bugfix for creating products in invalid industries --- src/Corporation/Actions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index e69d5bd72..1da5640f9 100644 --- a/src/Corporation/Actions.ts +++ b/src/Corporation/Actions.ts @@ -334,6 +334,9 @@ export function MakeProduct( if (productName == null || productName === "") { throw new Error("You must specify a name for your product!"); } + if (!division.makesProducts) { + throw new Error("You cannot create products for this industry!"); + } if (isNaN(designInvest)) { throw new Error("Invalid value for design investment"); }