X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrain.cpp;h=a6fd46d1e40519381c9723058b7252736a5f3b98;hb=e2ecc5a6e8e8056cd09599e60140498f322b87b6;hp=efe1a142cb6daefc29162f1a99bd578f55de7f9b;hpb=4d33c389881ebdf0b3926343d53e7d1ece654e20;p=r2c2.git diff --git a/source/libmarklin/train.cpp b/source/libmarklin/train.cpp index efe1a14..a6fd46d 100644 --- a/source/libmarklin/train.cpp +++ b/source/libmarklin/train.cpp @@ -141,6 +141,12 @@ bool Train::get_function(unsigned func) const return (functions>>func)&1; } +void Train::set_timetable(Timetable *tt) +{ + delete timetable; + timetable = tt; +} + void Train::set_route(const Route *r) { if(!rsv_blocks.empty())