]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/train.cpp
Read MFX locomotive name
[r2c2.git] / source / network / train.cpp
index df9367e2062366140c166e5c5fd43de4b8e75b5f..4ba4df08870891e354c10c86489bc3c82a0290ac 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2009  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include "client.h"
 #include "train.h"
 
@@ -14,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)