Skip to content

Commit

Permalink
Fixed a case of endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
swordfishtr authored Sep 25, 2024
1 parent 5512e76 commit b057750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b057750

Please sign in to comment.