Skip to content

Commit

Permalink
check if uselocationtags is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tombay committed Sep 25, 2023
1 parent 1a8dfb8 commit 82d8c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/lib/way_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function WayHandlers.speed(profile,way,result,data)
result.forward_speed = speed
result.backward_speed = speed
else
if profile.uselocationtags.speeds then
if profile.uselocationtags and profile.uselocationtags.speeds then
-- check for location tags to handle trunks
local extra_speeds = get_extra_speeds(way, data, profile.default_speed)
if extra_speeds then
Expand Down

0 comments on commit 82d8c30

Please sign in to comment.