diff --git a/project/src/controllers/InventoryController.ts b/project/src/controllers/InventoryController.ts index 7bf184f6..9cbe2617 100644 --- a/project/src/controllers/InventoryController.ts +++ b/project/src/controllers/InventoryController.ts @@ -663,6 +663,11 @@ export class InventoryController fullProfile.characters.pmc.Encyclopedia[itemTpl] = false; fullProfile.characters.scav.Info.Experience += item._props.ExamineExperience; + + if (!fullProfile.characters.scav.Encyclopedia) + { + fullProfile.characters.scav.Encyclopedia = {}; + } fullProfile.characters.scav.Encyclopedia[itemTpl] = false; }