Default players to an empty array
This commit is contained in:
parent
5ce7735d8f
commit
3a765ca1e8
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ export class Game {
|
||||||
this.id = Game.generateID(conf.game.code_length);
|
this.id = Game.generateID(conf.game.code_length);
|
||||||
this.host = host;
|
this.host = host;
|
||||||
this.ingame = false;
|
this.ingame = false;
|
||||||
|
this.players = [];
|
||||||
|
|
||||||
// Get the decks based on what type of data they are.
|
// Get the decks based on what type of data they are.
|
||||||
switch (conf.game.cards.type) {
|
switch (conf.game.cards.type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue