From dd9a7a6b55fd3a6a494ba41fc133b1f1056c66a9 Mon Sep 17 00:00:00 2001 From: tkimia Date: Thu, 24 Apr 2014 17:10:24 -0400 Subject: fixed an off-by-one error when moving teams into matches --- lib/scheduling/elimination.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index ca48f14..e66a29a 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -32,7 +32,7 @@ module Scheduling # if the match is full, move to the next match, otherwise move to the next team if (team_num == self.tournament.min_teams_per_match) match_num -= 1 - team_num = 0 + team_num = 1 else team_num += 1 end -- cgit v1.1-4-g5e80