segfault if first routing node equals start node

This commit is contained in:
Dennis Luxen 2010-09-29 13:22:12 +00:00
parent affaa106d1
commit 4c47d5b70e

View File

@ -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) );
{