X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fnetwork%2Fserver.cpp;fp=source%2Fnetwork%2Fserver.cpp;h=2bf641297309ad2e3a5ba304f6502af00fbc6fad;hb=e392d397f6b86a49a05e9738357ccbfc2a922f01;hp=d27683965897161a1c50f26db4716070c53f5002;hpb=e13742268b7030f8d6152858d39f1c6b43f94c88;p=r2c2.git diff --git a/source/network/server.cpp b/source/network/server.cpp index d276839..2bf6412 100644 --- a/source/network/server.cpp +++ b/source/network/server.cpp @@ -54,7 +54,7 @@ void Server::train_added(Train &train) TrainInfoPacket pkt; pkt.address = train.get_address(); - pkt.loco_type = train.get_locomotive_type().get_article_number(); + pkt.loco_type = train.get_locomotive_type().get_article_number().str(); pkt.name = train.get_name(); send(pkt); } @@ -135,7 +135,7 @@ void Server::Connection::handshake_done() { TrainInfoPacket pkt; pkt.address = train.get_address(); - pkt.loco_type = train.get_locomotive_type().get_article_number(); + pkt.loco_type = train.get_locomotive_type().get_article_number().str(); pkt.name = train.get_name(); comm.send(pkt); }