Skip to content

Commit

Permalink
Merge pull request #587 from Sepulchre49/master
Browse files Browse the repository at this point in the history
Fix bug preventing the gear picker dialog from loading when importing…
  • Loading branch information
rosenrusinov authored May 31, 2024
2 parents 7705fe8 + 6380e81 commit 163d2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ export class Player<SpecType extends Spec> {
let maxSuffixEP = 0;

if (item.randomSuffixOptions.length > 0) {
const suffixEPs = item.randomSuffixOptions.map(id => this.computeRandomSuffixEP(this.sim.db.getRandomSuffixById(id)!));
const suffixEPs = item.randomSuffixOptions.map(id => this.computeRandomSuffixEP(this.sim.db.getRandomSuffixById(id)! || 0));
maxSuffixEP = (Math.max(...suffixEPs) * item.randPropPoints) / 10000;
}

Expand Down

0 comments on commit 163d2a2

Please sign in to comment.