Don't use removed alternative paths in filterPackedPathsByCellSharing

This commit is contained in:
Michael Krasnyk 2017-11-29 12:28:11 +01:00
parent c1efefae27
commit 6fd0b56e32
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# UNRELEASED
# 5.14.1
- Changes from 5.14.0
- Bugfixes:
- FIXED: don't use removed alternative candidates in `filterPackedPathsByCellSharing`
# 5.14.0
- Changes from 5.13
- API:

View File

@ -784,9 +784,8 @@ InternalManyRoutesResult alternativePathSearch(SearchEngineData<Algorithm> &sear
begin(weighted_packed_paths) + 1,
alternative_paths_last);
alternative_paths_last = filterPackedPathsByCellSharing(begin(weighted_packed_paths), //
end(weighted_packed_paths), //
partition); //
alternative_paths_last = filterPackedPathsByCellSharing(
begin(weighted_packed_paths), alternative_paths_last, partition);
BOOST_ASSERT(weighted_packed_paths.size() >= 1);