bidirectional AStar fix

This commit is contained in:
Lev Dragunov 2015-05-28 14:24:48 +03:00 committed by Alex Zolotarev
parent b6c8921c4e
commit 64f6817f62

View file

@ -407,8 +407,8 @@ void AStarAlgorithm<TGraph>::ReconstructPathBidirectional(
ReconstructPath(w, parentW, pathW);
path.clear();
path.reserve(pathV.size() + pathW.size());
path.insert(path.end(), pathV.rbegin(), pathV.rend());
path.insert(path.end(), pathW.begin(), pathW.end());
path.insert(path.end(), pathV.begin(), pathV.end());
path.insert(path.end(), pathW.rbegin(), pathW.rend());
}
} // namespace routing