Prevent crash from null dexData attributes (#4871)
This commit is contained in:
parent
58912db8f1
commit
f778bd5877
|
@ -679,7 +679,7 @@ export class GameData {
|
|||
return ret;
|
||||
}
|
||||
|
||||
return k.endsWith("Attr") && ![ "natureAttr", "abilityAttr", "passiveAttr" ].includes(k) ? BigInt(v) : v;
|
||||
return k.endsWith("Attr") && ![ "natureAttr", "abilityAttr", "passiveAttr" ].includes(k) ? BigInt(v ?? 0) : v;
|
||||
}) as SystemSaveData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue