From bbad30c6e09feea8cf1e174e818c67ad16ac91f4 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Thu, 31 May 2012 14:01:51 +0200 Subject: [PATCH] Fixes issue #259 --- DataStructures/StaticGraph.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DataStructures/StaticGraph.h b/DataStructures/StaticGraph.h index f6cd61c89..eb41683a5 100644 --- a/DataStructures/StaticGraph.h +++ b/DataStructures/StaticGraph.h @@ -88,6 +88,9 @@ public: _nodes.swap(nodes); _edges.swap(edges); + //Add dummy node to end of _nodes array; + _nodes.push_back(_nodes.back()); + #ifndef NDEBUG Percent p(GetNumberOfNodes()); for(unsigned u = 0; u < GetNumberOfNodes(); ++u) {