- Track *next=track->get_link(other_ep);
- if(tracks.count(next)==0)
- return -1;
- track_ep=next->get_endpoint_by_link(*track);
- track=next;
+ Track *next = track->get_link(other_ep);
+ if(!tracks.count(next))
+ throw LogicError("Block traversal strayed out of the block");
+ track_ep = next->get_endpoint_by_link(*track);
+ track = next;