X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.cpp;fp=source%2Flibr2c2%2Ftrain.cpp;h=b1664633bc75e06dbb13fbcb92b1fadcea8945f5;hb=7c98e23312cf01ce1fa6c1ffd8e36c22d2fa6110;hp=7e4a6904610a7b51ee19940e7f4d9cc1812f95aa;hpb=05b95b6b6b095821f1e79dabed802b853c296c9d;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);