From 0c550b6f7557627cf3e0e94b22390ff4b401aacc Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Wed, 7 Aug 2024 16:53:26 -0700 Subject: [PATCH] Keep match ID when rematching --- pkg/server/server_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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