Skip to content

Commit

Permalink
fix: game_id and pair_id gets reset to 1 after loading from config (#734
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gahtan-syarif authored Oct 2, 2024
1 parent 945ab38 commit 572b7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/matchmaking/tournament/roundrobin/match_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class MatchGenerator {
n_rounds(rounds),
n_games_per_round(games),
current_round(1),
game_counter(0),
game_counter(played_games),
player1(0),
player2(1),
games_per_pair(0),
pair_counter(0) {
pair_counter(played_games / games) {
current_round = (played_games / games) + 1;

if (n_players < 2 || n_rounds < 1 || n_games_per_round < 1) {
Expand Down

0 comments on commit 572b7b6

Please sign in to comment.