]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.cpp
Support more complex article numbers
[r2c2.git] / source / libmarklin / train.cpp
index 38f1c765aead156f1e6b6a16f2df9d8c542c1079..6ab617ec1bbba2da119a58fc0689b017208ba192 100644 (file)
@@ -1431,9 +1431,9 @@ void Train::Loader::timetable()
        load_sub(*obj.timetable);
 }
 
-void Train::Loader::vehicle(unsigned n)
+void Train::Loader::vehicle(ArticleNumber art_nr)
 {
-       const VehicleType &vtype = obj.layout.get_catalogue().get_vehicle(n);
+       const VehicleType &vtype = obj.layout.get_catalogue().get_vehicle(art_nr);
        Vehicle *veh = new Vehicle(obj.layout, vtype);
        obj.vehicles.back()->attach_back(*veh);
        obj.vehicles.push_back(veh);