X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.cpp;h=b1664633bc75e06dbb13fbcb92b1fadcea8945f5;hb=cf38d0a8208fab7ba7aaafc5eed9a86dfc3722a5;hp=7e4a6904610a7b51ee19940e7f4d9cc1812f95aa;hpb=a5e1363ceac1ab552849640c9021fcda362c4416;p=r2c2.git diff --git a/source/libr2c2/train.cpp b/source/libr2c2/train.cpp index 7e4a690..b166463 100644 --- a/source/libr2c2/train.cpp +++ b/source/libr2c2/train.cpp @@ -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(art_nr); Vehicle *veh = new Vehicle(obj.layout, vtype); obj.vehicles.back()->attach_back(*veh); obj.vehicles.push_back(veh);