diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index 5a84ae499..a26f05dcc 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -136,6 +136,14 @@ var team = teams[i]; + if (!team) { + buf += '
  • Error: corrupted team
  • '; + teams.splice(i,1); + i--; + if (this.deletedTeamLoc && this.deletedTeamLoc > i) this.deletedTeamLoc--; + continue; + } + var formatText = ''; if (team.format) { formatText = '['+team.format+'] ';