X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.cpp;h=1076fedaedbbb17152084bb337d6f0e69d89c97f;hb=1c072afdb1866ba397ee8e6155f5f68c6c7ab4da;hp=d6066cb1c5a962e489032b4d9d8eda0ef6bbc7d5;hpb=0db89b665527609582df98854c9e3255d1017811;p=r2c2.git diff --git a/source/engineer/trainpanel.cpp b/source/engineer/trainpanel.cpp index d6066cb..1076fed 100644 --- a/source/engineer/trainpanel.cpp +++ b/source/engineer/trainpanel.cpp @@ -279,6 +279,6 @@ void TrainPanel::go_to(Track *track, unsigned) pick_conn.disconnect(); TrainRouter *router = train.get_ai_of_type(); - if(!router || !router->go_to(*track)) - engineer.set_status("Could not set route"); + if(router) + router->set_destination(track->get_block()); }