From 3c991a743c1bf0b88d9f6a9779cb48ac8ee2cfae Mon Sep 17 00:00:00 2001 From: phyzical Date: Wed, 30 Mar 2022 23:33:45 +0800 Subject: [PATCH] incorrect ternary --- src/Corporation/Actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index a639eb21e..328c21983 100644 --- a/src/Corporation/Actions.ts +++ b/src/Corporation/Actions.ts @@ -257,7 +257,7 @@ export function BulkPurchase(corp: ICorporation, warehouse: Warehouse, material: if (isNaN(amt) || amt < 0) { throw new Error(`Invalid input amount`); } - if (amt * matSize > maxAmount) { + if (amt * matSize <= maxAmount) { throw new Error(`You do not have enough warehouse size to fit this purchase`); } const cost = amt * material.bCost;