game: fix

This commit is contained in:
starnakin 2024-03-25 16:05:45 +01:00 committed by AdrienLSH
parent 3a7e505248
commit 602d4f300f

View File

@ -84,6 +84,8 @@ class Game
*/
this.players = [];
players_data = players_data === undefined ? [] : players_data;
players_data.forEach(player_data => {
this.players.push(new Player(this,
player_data.player_id,