game: fix

This commit is contained in:
starnakin 2024-03-25 16:05:45 +01:00
parent 6111e251e6
commit 2cc4a088f0

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,