]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/allocation.cpp
Use some template magic to deduce the proper 3D type
[r2c2.git] / source / 3d / allocation.cpp
index 0611b058f95a0d08f36ae3da0ba340cdfb6bdb30..3835f8c8df2ba99ae70c0c597025c9cc189bac78 100644 (file)
@@ -38,7 +38,7 @@ void Allocation3D::block_reserved(Block &block, Train *t)
                const Block::TrackSet &tracks = block.get_tracks();
                for(Block::TrackSet::const_iterator i=tracks.begin(); i!=tracks.end(); ++i)
                {
-                       Path3D *path = new Path3D(layout.get<Track3D>(**i));
+                       Path3D *path = new Path3D(layout.get_3d(**i));
                        bpaths.push_back(path);
                        path->set_layer(1);
                        float intensity = 0.5+train.get_block_allocator().is_block_current(block)*0.5;