From 3a765ca1e8326707e70e2281ce4ef954c2cd24c9 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 1 Jan 2021 16:03:42 -0700 Subject: [PATCH] Default players to an empty array --- server/src/objects/Game.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/objects/Game.ts b/server/src/objects/Game.ts index adcd8e9..a0e18c8 100644 --- a/server/src/objects/Game.ts +++ b/server/src/objects/Game.ts @@ -21,6 +21,7 @@ export class Game { this.id = Game.generateID(conf.game.code_length); this.host = host; this.ingame = false; + this.players = []; // Get the decks based on what type of data they are. switch (conf.game.cards.type) {