[generator] Call cross-mwm transit build only for existing transit section.

This commit is contained in:
Olga Khlopkova 2020-10-26 12:55:25 +03:00 committed by Anatoliy V. Tomilov
parent 834ee4c7ef
commit 0b589dd752

View file

@ -544,8 +544,12 @@ MAIN_WITH_ERROR_HANDLING([](int argc, char ** argv)
if (FLAGS_make_transit_cross_mwm_experimental)
{
routing::BuildTransitCrossMwmSection(path, dataFile, country, *countryParentGetter,
transitEdgeFeatureIds, true /* experimentalTransit */);
if (!transitEdgeFeatureIds.empty())
{
routing::BuildTransitCrossMwmSection(path, dataFile, country, *countryParentGetter,
transitEdgeFeatureIds,
true /* experimentalTransit */);
}
}
else if (FLAGS_make_transit_cross_mwm)
{