Fix host duplication
This commit is contained in:
parent
8fcc85dfeb
commit
ee1a19ed2b
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue