diff --git a/pkg/server/server_command.go b/pkg/server/server_command.go index 7d03922..a0bf3b9 100644 --- a/pkg/server/server_command.go +++ b/pkg/server/server_command.go @@ -1061,7 +1061,7 @@ COMMANDS: } else if clientGame.rematch != 0 && clientGame.rematch != cmd.client.playerNumber { s.gamesLock.Lock() - newGame := newServerGame(<-s.newGameIDs, clientGame.Variant) + newGame := newServerGame(clientGame.id, clientGame.Variant) newGame.name = clientGame.name newGame.Points = clientGame.Points newGame.password = clientGame.password