Nullguard inspecting a keycard when scav has no encyclopedia init
This commit is contained in:
parent
c0a1a73aba
commit
ee7c2aab36
@ -663,6 +663,11 @@ export class InventoryController
|
|||||||
fullProfile.characters.pmc.Encyclopedia[itemTpl] = false;
|
fullProfile.characters.pmc.Encyclopedia[itemTpl] = false;
|
||||||
|
|
||||||
fullProfile.characters.scav.Info.Experience += item._props.ExamineExperience;
|
fullProfile.characters.scav.Info.Experience += item._props.ExamineExperience;
|
||||||
|
|
||||||
|
if (!fullProfile.characters.scav.Encyclopedia)
|
||||||
|
{
|
||||||
|
fullProfile.characters.scav.Encyclopedia = {};
|
||||||
|
}
|
||||||
fullProfile.characters.scav.Encyclopedia[itemTpl] = false;
|
fullProfile.characters.scav.Encyclopedia[itemTpl] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user