Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/KC3Kai/kancolle-replay in…
Browse files Browse the repository at this point in the history
…to gh-pages
  • Loading branch information
fourinone41 committed Mar 12, 2024
2 parents 54560f1 + c70d626 commit d0b5214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/simulator-ui/sim-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,13 @@ var SIM = {
}
}

if (dataInput.consts.enableRangeWeights) {
if (dataInput.consts && dataInput.consts.enableRangeWeights) {
SHELL_RANGE_WEIGHTS.resetMissing();
}
},

_checkWarningsPostRun: function(dataInput) {
if (dataInput.consts.enableRangeWeights) {
if (dataInput.consts && dataInput.consts.enableRangeWeights) {
let keysMissingF = SHELL_RANGE_WEIGHTS.getMissing(0);
if (keysMissingF.length) this._addWarning('warn_range_weights_f', [keysMissingF.join(', ')]);
let keysMissingE = SHELL_RANGE_WEIGHTS.getMissing(1);
Expand Down

0 comments on commit d0b5214

Please sign in to comment.