]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockiter.cpp
Rename turnout/sensor_id fields in Track and Block to *_addr
[r2c2.git] / source / libr2c2 / blockiter.cpp
index a3f6d876a8b40000472283ca276c586bcfc1c482..9dcca6c68672a9392883ff4ccb4803358588a7f1 100644 (file)
@@ -40,7 +40,7 @@ const Block::Endpoint &BlockIter::endpoint() const
 int BlockIter::get_exit(const Route *route) const
 {
        const vector<Block::Endpoint> &eps = _block->get_endpoints();
-       if(_block->get_turnout_id())
+       if(_block->get_turnout_address())
        {
                /* The endpoints of a turnout block exactly correspond to the endpoints
                of the track. */