Skip to content

Commit

Permalink
fix: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PapePathe committed Oct 27, 2023
1 parent 65c877a commit 0ad3b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions znet/server_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ func (s *SocketHandler) HandlePlayerTake(c *websocket.Conn, obj map[string]strin

func (s *SocketHandler) HandlePlayerCard(c *websocket.Conn, obj map[string]string) {
pid, _ := strconv.Atoi(obj["player_id"])
c := cards.Card{Couleur: obj["couleur"], Genre: obj["genre"]}
card := cards.Card{Couleur: obj["couleur"], Genre: obj["genre"]}

err := s.g.PlayCard(pid, c)
err := s.g.PlayCard(pid, card)

if err != nil {
log.Println(err.Error())
Expand Down

0 comments on commit 0ad3b13

Please sign in to comment.