From: Mikko Rasa Date: Thu, 25 Apr 2013 11:13:04 +0000 (+0300) Subject: One more endpoint mask cleanup X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=sidebyside;h=eb9af366e9561204de69d97b8edd077dc6dc7add;p=r2c2.git One more endpoint mask cleanup --- diff --git a/source/libr2c2/route.cpp b/source/libr2c2/route.cpp index 795ae32..77c4f92 100644 --- a/source/libr2c2/route.cpp +++ b/source/libr2c2/route.cpp @@ -83,9 +83,9 @@ list dijkstra(const TrackIter &from, const Pred &goal) break; } - unsigned paths = lowest.track.endpoint().paths; - for(unsigned i=0; paths>>i; ++i) - if(paths&(1<>i; ++i) + if(ep.has_path(i)) { TrackIter next = lowest.track.next(i); if(!next)