forked from organicmaps/organicmaps
bidirectional AStar fix
This commit is contained in:
parent
b6c8921c4e
commit
64f6817f62
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue