]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/train.cpp
Full vehicle unification
[r2c2.git] / source / network / train.cpp
index 5c4b457bad9bb3093edb962887d567798e6d8777..6a0c3a8b8fa99006c56275e9382618f05998b962 100644 (file)
@@ -14,7 +14,7 @@ namespace Marklin {
 
 NetTrain::NetTrain(Client &c, const TrainInfoPacket &pkt):
        client(c),
-       loco_type(client.get_catalogue().get_locomotive(pkt.loco_type)),
+       loco_type(client.get_catalogue().get_vehicle(pkt.loco_type)),
        address(pkt.address),
        name(pkt.name),
        functions(0)