From 53f485b8f28ae2a99667b0fcca9852105abab882 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 13 Mar 2024 09:53:47 -0700 Subject: [PATCH] fix variable overshadow in 6x6F queued case --- src/SendCommands.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SendCommands.cc b/src/SendCommands.cc index 9bb7f770..0ab119e4 100644 --- a/src/SendCommands.cc +++ b/src/SendCommands.cc @@ -2695,10 +2695,10 @@ void send_game_flag_state_t(shared_ptr c) { if (c->game_join_command_queue) { c->log.info("Client not ready to receive join commands; adding to queue"); - auto& cmd = c->game_join_command_queue->emplace_back(); - cmd.command = 0x0062; - cmd.flag = c->lobby_client_id; - cmd.data.assign(reinterpret_cast(&cmd), sizeof(cmd)); + auto& queue_cmd = c->game_join_command_queue->emplace_back(); + queue_cmd.command = 0x0062; + queue_cmd.flag = c->lobby_client_id; + queue_cmd.data.assign(reinterpret_cast(&cmd), sizeof(cmd)); } else { send_command_t(c, 0x62, c->lobby_client_id, cmd); }