]> git.tdb.fi Git - r2c2.git/commitdiff
One more endpoint mask cleanup
authorMikko Rasa <tdb@tdb.fi>
Thu, 25 Apr 2013 11:13:04 +0000 (14:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 25 Apr 2013 11:13:04 +0000 (14:13 +0300)
source/libr2c2/route.cpp

index 795ae3215bbcbff77fa7eadc9b0baded96f70dd7..77c4f9280532537e41614c37837f66a82cca67a6 100644 (file)
@@ -83,9 +83,9 @@ list<Track *> 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))
+               const TrackType::Endpoint &ep = lowest.track.endpoint();
+               for(unsigned i=0; ep.paths>>i; ++i)
+                       if(ep.has_path(i))
                        {
                                TrackIter next = lowest.track.next(i);
                                if(!next)