X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.cpp;h=ab417cff171155a6c8bc4eea15b5903396b02503;hb=1d240350c24138e173eac660d31d56c7b8503b09;hp=243da7fc4830c5279d782dc4d76499ccc2eb5fff;hpb=621c5c938d70ba0d155e0eda91a708db0a52c0dc;p=r2c2.git diff --git a/source/3d/tracktype.cpp b/source/3d/tracktype.cpp index 243da7f..ab417cf 100644 --- a/source/3d/tracktype.cpp +++ b/source/3d/tracktype.cpp @@ -87,7 +87,7 @@ TrackType3D::TrackType3D(Catalogue3D &cat3d, const TrackType &tt): string obj_name = tt.get_object(); if(!obj_name.empty()) { - object = catalogue.get(obj_name); + object = &catalogue.get(obj_name); const GL::Mesh *m = object->get_mesh(); const GL::VertexArray &vertices = m->get_vertices(); int vertex_offs = vertices.get_format().offset(GL::VERTEX2); @@ -120,7 +120,7 @@ TrackType3D::TrackType3D(Catalogue3D &cat3d, const TrackType &tt): object = new GL::Object; object->set_mesh(mesh); - object->set_technique(catalogue.get(cat.get_track_technique())); + object->set_technique(&catalogue.get(cat.get_track_technique())); } unsigned paths = tt.get_paths();