Fix crash in PSdex tier display

This commit is contained in:
Guangcong Luo
2020-05-12 04:43:14 -04:00
parent a97c287bf4
commit a4593c6bcb

View File

@@ -293,8 +293,9 @@
var buf = '<li class="result"><a' + attrs + ' data-entry="pokemon|' + BattleLog.escapeHTML(pokemon.name) + '">';
// number
var tier = this.engine ? this.engine.getTier(pokemon) : pokemon.num;
// buf += '<span class="col numcol">' + (pokemon.num >= 0 ? pokemon.num : 'CAP') + '</span> ';
buf += '<span class="col numcol">' + this.engine.getTier(pokemon) + '</span> ';
buf += '<span class="col numcol">' + tier + '</span> ';
// icon
buf += '<span class="col iconcol">';