diff --git a/Contractor/SearchEngine.h b/Contractor/SearchEngine.h index cb7f4c43f..0595d3f0e 100644 --- a/Contractor/SearchEngine.h +++ b/Contractor/SearchEngine.h @@ -192,7 +192,7 @@ public: // push start node explicitely - NodeID nameID = GetNameIDForOriginDestinationNodeID(phantomNodes->startNode1, packedPath[0]); + NodeID nameID = GetNameIDForOriginDestinationNodeID( (phantomNodes->startNode1 == packedPath[0] ? phantomNodes->startNode2 : phantomNodes->startNode1) , packedPath[0]); path->push_back(std::make_pair(packedPath[0], nameID) ); {