X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.cpp;h=b9ebc73c31708615536549b3e4a771c2a56b5ec1;hb=5929b101ee38b5668b328e7b1eac4bf49c912412;hp=aad2ca898d1bc5ca9126ad5474a0c3bd3f2a52c6;hpb=4c8c03d25ec4d58772ceb5b287deab645fdae19f;p=r2c2.git diff --git a/source/3d/tracktype.cpp b/source/3d/tracktype.cpp index aad2ca8..b9ebc73 100644 --- a/source/3d/tracktype.cpp +++ b/source/3d/tracktype.cpp @@ -16,7 +16,6 @@ TrackType3D::TrackType3D(Catalogue3D &c, const TrackType &tt): own_data(false) { const TrackAppearance &appearance = tt.get_appearance(); - const Catalogue &cat = catalogue.get_catalogue(); const vector &parts = tt.get_parts(); const Profile &ballast_profile = appearance.get_ballast_profile(); @@ -34,7 +33,7 @@ TrackType3D::TrackType3D(Catalogue3D &c, const TrackType &tt): const Vector &tie_max = tie_profile.get_max_coords(); float tie_h = tie_max.y-tie_min.y; - float gauge = cat.get_gauge(); + float gauge = appearance.get_gauge(); string obj_name = tt.get_object(); if(!obj_name.empty())