]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.cpp
Use generic ObjectTypes in Catalogue
[r2c2.git] / source / libr2c2 / train.cpp
index 7e4a6904610a7b51ee19940e7f4d9cc1812f95aa..b1664633bc75e06dbb13fbcb92b1fadcea8945f5 100644 (file)
@@ -602,7 +602,7 @@ void Train::Loader::router()
 
 void Train::Loader::vehicle(ArticleNumber art_nr)
 {
-       const VehicleType &vtype = obj.layout.get_catalogue().get_vehicle(art_nr);
+       const VehicleType &vtype = obj.layout.get_catalogue().get<VehicleType>(art_nr);
        Vehicle *veh = new Vehicle(obj.layout, vtype);
        obj.vehicles.back()->attach_back(*veh);
        obj.vehicles.push_back(veh);