lib/rrschedule.rb in rrschedule-0.3.2 vs lib/rrschedule.rb in rrschedule-0.3.3
- old
+ new
@@ -148,10 +148,11 @@
flat_games = []
if group_flights
while rounds_copy.flatten.size > 0 do
@flights.each_with_index do |f,flight_index|
- flat_games << rounds_copy[flight_index].shift.games
+ r = rounds_copy[flight_index].shift
+ flat_games << r.games if r
end
end
else
flight_index = round_index = 0
game_ctr = 0