diff --git a/project/src/helpers/TradeHelper.ts b/project/src/helpers/TradeHelper.ts index 52c8af94..c333c35f 100644 --- a/project/src/helpers/TradeHelper.ts +++ b/project/src/helpers/TradeHelper.ts @@ -129,7 +129,7 @@ export class TradeHelper const itemPurchased = traderAssorts.find((x) => x._id === buyRequestData.item_id); // Decrement trader item count - itemPurchased.upd.StackObjectsCount -= buyRequestData.count; + itemPurchased.upd.StackObjectsCount -= buyCount; /// Pay for item output = this.paymentService.payMoney(pmcData, buyRequestData, sessionID, output);