X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fblock.cpp;h=b3a96e67f4f59850c58a599c92eced8dc70d96c4;hb=36beacc579d3132642ed4d98ce5a6d99842b5812;hp=f96e295a13a75f1962bfd149ccd59dbac41a3796;hpb=78bc40c2d1a5fcc5715143bd2326716fbb143730;p=r2c2.git diff --git a/source/libmarklin/block.cpp b/source/libmarklin/block.cpp index f96e295..b3a96e6 100644 --- a/source/libmarklin/block.cpp +++ b/source/libmarklin/block.cpp @@ -93,7 +93,7 @@ const Block::Endpoint *Block::traverse(const Endpoint *ep) const if(i->track==track && i->track_ep==other_ep) return &*i; - track_ep=track->get_endpoint_by_link(other_ep->link); + track_ep=other_ep->link->get_endpoint_by_link(track); track=other_ep->link; if(tracks.count(track)==0) @@ -122,6 +122,8 @@ bool Block::reserve(const Train *t) if(!t || !train) { train=t; + cout<<"Block "<