fix invalid ref to numberOfSegments in foot profile
This commit is contained in:
		
							parent
							
								
									b6303626b5
								
							
						
					
					
						commit
						9dd45cceab
					
				| @ -128,7 +128,7 @@ function way_function (way, numberOfNodesInWay) | |||||||
|        (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)  |        (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)  | ||||||
|     then |     then | ||||||
|       if durationIsValid(duration) then |       if durationIsValid(duration) then | ||||||
| 	    way.speed = parseDuration / math.max(1, numberOfSegments-1); | 	    way.speed = parseDuration / math.max(1, numberOfNodesInWay-1); | ||||||
|         way.is_duration_set = true; |         way.is_duration_set = true; | ||||||
|       end |       end | ||||||
|       way.direction = Way.bidirectional; |       way.direction = Way.bidirectional; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user