diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index ecbfb2eff..20abbe0b6 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 > maxAmount) { throw new Error(`You do not have enough warehouse size to fit this purchase`); } const cost = amt * material.bCost;