fixed bug with fixture generation

This commit is contained in:
2026-02-19 18:49:02 +11:00
parent ac0ce0ba23
commit 113d51eef8

View File

@@ -269,7 +269,7 @@ func playOtherTeams(team *Team, teams []*Team, round int) []*versus {
matchups := make([]*versus, len(teams))
for i, opponent := range teams {
versus := &versus{}
if i%2+round%2 == 0 {
if (i+round)%2 == 0 {
versus.homeTeam = team
versus.awayTeam = opponent
} else {