diff --git a/lib/fit4ruby/Session.rb b/lib/fit4ruby/Session.rb index 127ee22..741e0eb 100644 --- a/lib/fit4ruby/Session.rb +++ b/lib/fit4ruby/Session.rb @@ -60,10 +60,10 @@ def check(activity) Log.fatal 'num_laps is not set' end @first_lap_index.upto(@first_lap_index - @num_laps) do |i| - if (lap = activity.lap[i]) + if (lap = activity.laps[i]) @laps << lap else - Log.fatal "Session references lap #{i} which is not contained in " + Log.fatal "Session references lap #{i} which is not contained in " \ "the FIT file." end end