]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Return null from Route::find if a route can't be found
[r2c2.git] / source / libmarklin / train.h
index f267263cb9efbfa22cc804c4eb47c50ea5c972d9..4c4d1c353cb3145d566d7a5917d605c73cc02b74 100644 (file)
@@ -134,8 +134,8 @@ public:
        void set_timetable(Timetable *);
        Timetable *get_timetable() { return timetable; }
 
-       void set_route(const Route *);
-       void go_to(Track &);
+       bool set_route(const Route *);
+       bool go_to(Track &);
        bool divert(Track &);
        const Route *get_route() const;
        void place(Block &, unsigned);