diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index cadd980a8..0b8e8bd69 100644 --- a/src/Corporation/Actions.ts +++ b/src/Corporation/Actions.ts @@ -258,7 +258,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;