segfault if first routing node equals start node
This commit is contained in:
parent
affaa106d1
commit
4c47d5b70e
@ -192,7 +192,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// push start node explicitely
|
// 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) );
|
path->push_back(std::make_pair(packedPath[0], nameID) );
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user