From d52b88267934a7fa710729d29ce4a8c5e498998b Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 12 Dec 2022 22:03:45 -0800 Subject: [PATCH] fix team count in tournament status command --- src/SendCommands.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SendCommands.cc b/src/SendCommands.cc index f30a6ace..2d342af9 100644 --- a/src/SendCommands.cc +++ b/src/SendCommands.cc @@ -1952,6 +1952,7 @@ void send_ep3_confirm_tournament_entry( // TODO: Fill this in appropriately when we support scheduled start times cmd.start_time = "Unknown"; auto& teams = tourn->all_teams(); + cmd.num_teams = min(teams.size(), 0x20); for (size_t z = 0; z < min(teams.size(), 0x20); z++) { cmd.team_entries[z].win_count = teams[z]->num_rounds_cleared; cmd.team_entries[z].is_active = teams[z]->is_active;