diff --git a/src/updater/updater.cpp b/src/updater/updater.cpp index e24468fe7..e06c159a5 100644 --- a/src/updater/updater.cpp +++ b/src/updater/updater.cpp @@ -584,12 +584,14 @@ Updater::LoadAndUpdateEdgeExpandedGraph(std::vector &e [&] { // we are going to overwrite this `.turn_weight_penalties` afterwards, - // so here we backup the original turn penalties if we didn't do that yet in order to - // guarantee that subsequent runs of this code will work on top of original weights + // so here we backup the original turn penalties if we didn't do that yet in order + // to guarantee that subsequent runs of this code will work on top of original + // weights auto path = config.GetPath(".osrm.turn_weight_penalties").string() + ".original"; if (!boost::filesystem::exists(path)) { - boost::filesystem::copy_file(config.GetPath(".osrm.turn_weight_penalties"), path); + boost::filesystem::copy_file(config.GetPath(".osrm.turn_weight_penalties"), + path); } extractor::files::readTurnWeightPenalty(path, turn_weight_penalties); },