From 6f114101076dc2920aebcc436a78cf9a7df6d1b7 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 13 Dec 2022 22:25:48 -0800 Subject: [PATCH] fix tournament player positions on b team --- src/ReceiveCommands.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 94f28ba0..60fafbb8 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -972,8 +972,6 @@ static bool start_ep3_tournament_match_if_pending( return false; } - auto other_team = match->opponent_team_for_team(team); - vector required_serial_numbers; required_serial_numbers.resize(4, 0); auto add_team_players = [&](shared_ptr team, size_t base_index) -> void { @@ -988,8 +986,8 @@ static bool start_ep3_tournament_match_if_pending( z++; } }; - add_team_players(team, 0); - add_team_players(other_team, 2); + add_team_players(match->preceding_a->winner_team, 0); + add_team_players(match->preceding_b->winner_team, 2); auto clients_map = l->clients_by_serial_number(); vector> game_clients;