]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/train.cpp
Use generic ObjectTypes in Catalogue
[r2c2.git] / source / network / train.cpp
index eb9563786aa982bd08eb299ae7e2252555cbc909..4ba4df08870891e354c10c86489bc3c82a0290ac 100644 (file)
@@ -7,7 +7,7 @@ namespace R2C2 {
 
 NetTrain::NetTrain(Client &c, const TrainInfoPacket &pkt):
        client(c),
-       loco_type(client.get_catalogue().get_vehicle(pkt.loco_type)),
+       loco_type(client.get_catalogue().get<VehicleType>(pkt.loco_type)),
        address(pkt.address),
        name(pkt.name),
        functions(0)