Nullguard inspecting a keycard when scav has no encyclopedia init

This commit is contained in:
Dev 2024-03-20 17:47:48 +00:00
parent c0a1a73aba
commit ee7c2aab36

View File

@ -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;
}