From c757f70b97f3d513d3e292c3a3b804b0fa7f4640 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Thu, 18 May 2017 16:10:43 +0200 Subject: [PATCH] Prevents possible overflow in applying a turn penalty onto restricted roads --- profiles/car.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/car.lua b/profiles/car.lua index 4880a014d..f7bac1bf8 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -413,7 +413,7 @@ function turn_function (turn) if properties.weight_name == 'routability' then -- penalize turns from non-local access only segments onto local access only tags if not turn.source_restricted and turn.target_restricted then - turn.weight = turn.weight + profile.restricted_penalty + turn.weight = profile.restricted_penalty end end end