Additional fix when purchasing clothing

This commit is contained in:
Dev 2023-05-15 19:18:42 +01:00
parent ce63d5418b
commit 4d27efd9d1

View File

@ -163,7 +163,7 @@ export class CustomizationController
if (relatedItem.upd.StackObjectsCount > clothingItem.count)
{
pmcData.Inventory.items[relatedItem._id].upd.StackObjectsCount -= clothingItem.count;
relatedItem.upd.StackObjectsCount -= clothingItem.count;
output.profileChanges[sessionId].items.change.push({
_id: relatedItem._id,
_tpl: relatedItem._tpl,