diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 3e34fa88..1b5c4c16 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -501,6 +501,10 @@ export class QuestHelper if (newStackSize > 0) { const item = pmcData.Inventory.items[inventoryItemIndex]; + if (!item.upd) + { + item.upd = {}; + } item.upd.StackObjectsCount = newStackSize; this.addItemStackSizeChangeIntoEventResponse(output, sessionID, item);