Skip to content

Commit

Permalink
Prevent crash from null dexData attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MokaStitcher committed Nov 14, 2024
1 parent 640ac23 commit 9601288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/game-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9601288

Please sign in to comment.