Fix bug about the message thread removals
This commit is contained in:
parent
59f7ed309d
commit
ec54f74de6
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ export default (io: Server, socket: Socket, data: RandomizeTeams) => {
|
||||||
|
|
||||||
// Remove all players from all teams
|
// Remove all players from all teams
|
||||||
for (var team of game.teams) {
|
for (var team of game.teams) {
|
||||||
team.removePlayers();
|
team.guessers = [];
|
||||||
|
team.writer = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
let players = [...game.players];
|
let players = [...game.players];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue