From ccbba2d978b622a7396d47866c69c31cc83a051b Mon Sep 17 00:00:00 2001 From: Max Krivanek Date: Sun, 4 Feb 2024 20:23:42 -0600 Subject: [PATCH] Removed double clear of teams in GameServer Query. --- game.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game.go b/game.go index 4d4b0ca..454af6c 100644 --- a/game.go +++ b/game.go @@ -358,9 +358,7 @@ func (g *GameServer) Query(timeout time.Duration, localAddress string) error { if err != nil { return err } - - g.teams = nil - + for i := uint8(0); i < g.numTeams; i++ { teamName, err := ReadPascalString(reader) if err != nil {