]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/vehicletype.cpp
Don't crash if a train has no router
[r2c2.git] / source / 3d / vehicletype.cpp
index 4c885174021695e7fd66b6d1a25ade0fbeaef255..34f2be630a9bc587680aaf2b4691888b6941eaf0 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/gl/material.h>
 #include <msp/gl/meshbuilder.h>
 #include <msp/gl/technique.h>
 #include <msp/gl/texture2d.h>
@@ -25,7 +26,7 @@ T get(const map<string, string> &params, const string &key, T def = T())
 namespace R2C2 {
 
 VehicleType3D::VehicleType3D(Catalogue3D &c, const VehicleType &t):
-       catalogue(c),
+       ObjectType3D(c),
        type(t),
        body_object(0)
 {