game: fix
This commit is contained in:
parent
3a7e505248
commit
602d4f300f
@ -84,6 +84,8 @@ class Game
|
|||||||
*/
|
*/
|
||||||
this.players = [];
|
this.players = [];
|
||||||
|
|
||||||
|
players_data = players_data === undefined ? [] : players_data;
|
||||||
|
|
||||||
players_data.forEach(player_data => {
|
players_data.forEach(player_data => {
|
||||||
this.players.push(new Player(this,
|
this.players.push(new Player(this,
|
||||||
player_data.player_id,
|
player_data.player_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user