Fixes cucumber test features/bad.feature:15

This commit is contained in:
DennisOSRM
2012-09-27 14:55:48 +02:00
parent bd6f2db1d1
commit c16c2adeda
3 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -52,10 +52,11 @@ public:
~AlternativeRouting() {}
void operator()(const PhantomNodes & phantomNodePair, RawRouteData & rawRouteData) {
if(!phantomNodePair.AtLeastOnePhantomNodeIsUINTMAX()) {
if(!phantomNodePair.AtLeastOnePhantomNodeIsUINTMAX() || phantomNodePair.PhantomNodesHaveEqualLocation()) {
rawRouteData.lengthOfShortestPath = rawRouteData.lengthOfAlternativePath = INT_MAX;
return;
}
std::vector<NodeID> alternativePath;
std::vector<NodeID> viaNodeCandidates;
std::deque <NodeID> packedShortestPath;