]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/trackcircuit.cpp
Use some template magic to deduce the proper 3D type
[r2c2.git] / source / 3d / trackcircuit.cpp
index d74ee20fa6a9f7a303c969e29260f75f6dd6d05f..44e844dfa6a39a70dbc42c47a98d466e5cef4cec 100644 (file)
@@ -18,7 +18,7 @@ TrackCircuit3D::TrackCircuit3D(Layout3D &l, TrackCircuit &tc):
        TrackIter iter = BlockIter(block, 0).track_iter();
        for(; (iter && &iter->get_block()==block); iter=iter.next())
        {
-               Path3D *path = new Path3D(layout.get<Track3D>(*iter));
+               Path3D *path = new Path3D(layout.get_3d(*iter));
                paths.push_back(path);
                path->set_side(iter.entry()*2-1);
        }