Fix empty room bug

This commit is contained in:
Administrator 2021-06-18 08:55:55 +02:00
parent ae4d7085ba
commit a5ec342005

View File

@ -14,6 +14,8 @@ class Game {
let move_to_next_round = false;
// move on to next player; skip dead players
do {
if(this.players.length === 0) break;
this.currentPlayerIndex++;
if (this.currentPlayerIndex >= this.players.length) {
this.currentPlayerIndex = 0;