From 71e37823dd015183936a5fd640789a37d0b08083 Mon Sep 17 00:00:00 2001 From: TheAimMan <147098375+TheAimMan@users.noreply.github.com> Date: Mon, 23 Oct 2023 04:54:43 -0400 Subject: [PATCH] BUGFIX: Update warehouseSizeUsed after bulk purchase (#871) --- src/Corporation/Actions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index 73bedfd95..7cb1831fe 100644 --- a/src/Corporation/Actions.ts +++ b/src/Corporation/Actions.ts @@ -312,6 +312,7 @@ export function BulkPurchase( if (corp.funds >= cost) { corp.funds = corp.funds - cost; material.stored += amt; + warehouse.sizeUsed = warehouse.sizeUsed + amt * matSize; } else { throw new Error(`You cannot afford this purchase.`); }