lib/minigl/movement.rb in minigl-2.3.2 vs lib/minigl/movement.rb in minigl-2.3.3

- old
+ new

@@ -511,9 +511,11 @@ # the points. def cycle(points, speed, obstacles = nil, obst_obstacles = nil, obst_ramps = nil, stop_time = 0) unless @cycle_setup @cur_point = 0 if @cur_point.nil? if obstacles + obst_obstacles = [] if obst_obstacles.nil? + obst_ramps = [] if obst_ramps.nil? move_carrying points[@cur_point], speed, obstacles, obst_obstacles, obst_ramps else move_free points[@cur_point], speed end end