diff --git a/generator/routing_generator.cpp b/generator/routing_generator.cpp index ecbf7e9610..1b39c9584f 100644 --- a/generator/routing_generator.cpp +++ b/generator/routing_generator.cpp @@ -263,9 +263,9 @@ void BuildCrossRoutingIndex(string const & baseDir, string const & countryName, routing::CrossRoutingContextWriter crossContext; FindCrossNodes(nodeData, osm2ft, countries, countryName, index, p.first, crossContext); - string const mwmWithRoutingPath = localFile.GetPath(MapOptions::Map) + ROUTING_FILE_EXTENSION; - CalculateCrossAdjacency(mwmWithRoutingPath, crossContext); - WriteCrossSection(crossContext, mwmWithRoutingPath); + string const mwmPath = localFile.GetPath(MapOptions::Map); + CalculateCrossAdjacency(mwmPath, crossContext); + WriteCrossSection(crossContext, mwmPath); } void BuildRoutingIndex(string const & baseDir, string const & countryName, string const & osrmFile)