diff --git a/js/client-chat-tournament.js b/js/client-chat-tournament.js index ed23f4487..dac9691ef 100644 --- a/js/client-chat-tournament.js +++ b/js/client-chat-tournament.js @@ -197,8 +197,8 @@ } }; TournamentBox.prototype.updateTeams = function () { - var forceFormatChange = (this.info.format !== this.teamSelectFormat); - this.teamSelectFormat = this.info.format; + var forceFormatChange = (this.info.teambuilderFormat !== this.teamSelectFormat); + this.teamSelectFormat = this.info.teambuilderFormat; if (!this.info.isJoined) { this.$teamSelect.hide(); @@ -212,7 +212,7 @@ if (isNaN(teamIndex)) teamIndex = -1; } - this.$teamSelect.html(app.rooms[''].renderTeams.call(this, this.info.format, teamIndex)); + this.$teamSelect.html(app.rooms[''].renderTeams.call(this, this.info.teambuilderFormat, teamIndex)); this.$teamSelect.children().data('type', 'teamSelect'); this.$teamSelect.children().attr('name', 'tournamentButton'); this.$teamSelect.show(); @@ -302,7 +302,7 @@ this.room.closeNotification('tournament-create'); if (!this.info.isJoined) { this.toggleBoxVisibility(false); - } else if (this.info.format.substr(0, 4) === 'gen5' && !Tools.loadedSpriteData['bw']) { + } else if (this.info.teambuilderFormat.substr(0, 4) === 'gen5' && !Tools.loadedSpriteData['bw']) { Tools.loadSpriteData('bw'); } this.room.$chat.append("