]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/block.h
Properly detect blocks as critical when a train is not moving
[r2c2.git] / source / libr2c2 / block.h
index 4309290da3f3145a553a405009dc35a4c60b8ad9..558d425016ffe050a937ef47726536229b2b9eee 100644 (file)
@@ -50,7 +50,7 @@ public:
        unsigned get_id() const { return id; }
        unsigned get_sensor_id() const { return sensor_id; }
        unsigned get_turnout_id() const { return turnout_id; }
-       TrackCircuit &get_sensor() const { return *sensor; }
+       TrackCircuit *get_sensor() const { return sensor; }
        const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
        const Endpoint &get_endpoint(unsigned) const;
        int get_endpoint_by_link(Block &) const;