]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/vehicletype.h
Derive Collection3D from Msp::DataFile and get GL::Objects through it
[r2c2.git] / source / 3d / vehicletype.h
index bef461c695befa7a3781983bd9a3918be9295ba8..8be9f3aa5bad5e79a6640982aea8b289d121852e 100644 (file)
@@ -19,7 +19,7 @@ class Catalogue3D;
 class VehicleType3D
 {
 private:
-       const Catalogue3D &catalogue;
+       Catalogue3D &catalogue;
        const VehicleType &type;
        std::map<std::string, Msp::GL::Object *> objects;
        Msp::GL::Object *body_object;
@@ -28,7 +28,7 @@ private:
        std::vector<Msp::GL::Object *> rod_objects;
 
 public:
-       VehicleType3D(const Catalogue3D &, const VehicleType &);
+       VehicleType3D(Catalogue3D &, const VehicleType &);
        ~VehicleType3D();
 
        const Msp::GL::Object *get_body_object() const { return body_object; }