diff options
-rw-r--r-- | routing/routing_integration_tests/routing_test_tools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routing/routing_integration_tests/routing_test_tools.cpp b/routing/routing_integration_tests/routing_test_tools.cpp index fe9c9e192c..7c8ba2cb95 100644 --- a/routing/routing_integration_tests/routing_test_tools.cpp +++ b/routing/routing_integration_tests/routing_test_tools.cpp @@ -111,7 +111,9 @@ unique_ptr<IndexRouter> CreateVehicleRouter(DataSource & dataSource, auto countryParentGetter = std::make_unique<storage::CountryParentGetter>(); CHECK(countryParentGetter, ()); - auto indexRouter = make_unique<IndexRouter>(vehicleType, false /* load altitudes*/, + bool const loadAltitudes = + vehicleType == VehicleType::Pedestrian || vehicleType == VehicleType::Bicycle; + auto indexRouter = make_unique<IndexRouter>(vehicleType, loadAltitudes, *countryParentGetter, countryFileGetter, getMwmRectByName, numMwmIds, MakeNumMwmTree(*numMwmIds, infoGetter), trafficCache, dataSource); |