From 5d905dbde2e236dcda7ce55edcc733727ae786d7 Mon Sep 17 00:00:00 2001 From: seberoth Date: Sat, 9 Dec 2023 09:50:47 +0100 Subject: [PATCH] Fixed issue with parsing some properties --- Scripts/TypeHelper.wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/TypeHelper.wscript b/Scripts/TypeHelper.wscript index 2b190da..9b1b86e 100644 --- a/Scripts/TypeHelper.wscript +++ b/Scripts/TypeHelper.wscript @@ -92,7 +92,7 @@ export class TweakDBID extends HashValue { function reviver(key, value) { if (value !== null && value.hasOwnProperty('$type')) { - if (['CName', 'ResourcePath', 'TweakDBID', 'NodeRef'].includes(value['$type'])) { + if (['CName', 'ResourcePath', 'TweakDBID', 'NodeRef'].includes(value['$type']) && value.hasOwnProperty('$storage') && value.hasOwnProperty('$value')) { var propValue; switch (value['$storage']) { case 'string':