X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flayout.cpp;h=1448a1d76eef08085e76f4604c29fc2586b43e04;hb=97443d96ff3ce51388d2edd1e0dca8f2cd231346;hp=97297410c25d4188b7e54d6e13c5c7e77ee9d3ad;hpb=4d33c389881ebdf0b3926343d53e7d1ece654e20;p=r2c2.git diff --git a/source/libmarklin/layout.cpp b/source/libmarklin/layout.cpp index 9729741..1448a1d 100644 --- a/source/libmarklin/layout.cpp +++ b/source/libmarklin/layout.cpp @@ -15,11 +15,11 @@ Distributed under the GPL #include "catalogue.h" #include "driver.h" #include "layout.h" -#include "locotype.h" #include "route.h" #include "track.h" #include "tracktype.h" #include "train.h" +#include "vehicletype.h" using namespace std; using namespace Msp; @@ -414,7 +414,7 @@ void Layout::Loader::track(unsigned art_nr) void Layout::Loader::train(unsigned art_nr, unsigned addr) { - Train *trn = new Train(obj, obj.catalogue.get_locomotive(art_nr), addr); + Train *trn = new Train(obj, obj.catalogue.get_vehicle(art_nr), addr); load_sub(*trn); }