diff options
Diffstat (limited to 'routing/pedestrian_model.cpp')
-rw-r--r-- | routing/pedestrian_model.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/pedestrian_model.cpp b/routing/pedestrian_model.cpp index 285ed91d38..a70576c3b7 100644 --- a/routing/pedestrian_model.cpp +++ b/routing/pedestrian_model.cpp @@ -626,11 +626,11 @@ void PedestrianModel::Init() m_noFootType = classif().GetTypeByPath({ "hwtag", "nofoot" }); m_yesFootType = classif().GetTypeByPath(hwtagYesFoot); - initializer_list<char const *> arr[] = { - hwtagYesFoot, {"route", "ferry"}, {"man_made", "pier"}, + vector<AdditionalRoadTags> additionalTags = { + { hwtagYesFoot, m_maxSpeedKMpH }, {{"route", "ferry"}, m_maxSpeedKMpH }, {{"man_made", "pier"}, 4.0 }, }; - SetAdditionalRoadTypes(classif(), arr, ARRAY_SIZE(arr)); + SetAdditionalRoadTypes(classif(), additionalTags); } IVehicleModel::RoadAvailability PedestrianModel::GetRoadAvailability(feature::TypesHolder const & types) const |