Skip to content

Commit

Permalink
Fixed issue with parsing some properties
Browse files Browse the repository at this point in the history
  • Loading branch information
seberoth committed Dec 9, 2023
1 parent 98df13f commit 5d905db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/TypeHelper.wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 5d905db

Please sign in to comment.