diff --git a/play.pokemonshowdown.com/js/storage.js b/play.pokemonshowdown.com/js/storage.js index 3eeaa4e332..8ca36a79bf 100644 --- a/play.pokemonshowdown.com/js/storage.js +++ b/play.pokemonshowdown.com/js/storage.js @@ -1107,7 +1107,7 @@ Storage.unpackTeam = function (buf) { set.dynamaxLevel = (misc[4] ? Number(misc[4]) : 10); set.teraType = misc[5]; } - if (j < 0) break; + if (j < 0 || buf.indexOf('|', j) < 0) break; i = j + 1; }