0
0
Fork 0

Fix host duplication

This commit is contained in:
Oliver-Akins 2021-01-07 15:05:02 -07:00
parent 8fcc85dfeb
commit ee1a19ed2b

View file

@ -143,7 +143,6 @@ export class Game {
game.teams = data.teams.map(t => Team.fromJSON(t)); game.teams = data.teams.map(t => Team.fromJSON(t));
// Re-instantiate all the players from the game. // Re-instantiate all the players from the game.
game.players.push(host)
for (var player of data.players) { for (var player of data.players) {
if (player.name !== host.name) { if (player.name !== host.name) {
player.host = false; player.host = false;