diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-31 00:25:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-11-05 20:05:05 +0000 |
commit | 6369d70e9e2952664bd7967ee2fd2280fc7f2b83 (patch) | |
tree | f7e2716318501ab4ab2cab92c3d5f0bed367d777 /game/vehicles/train.h | |
parent | Fix GenDef for networks, should be globals (diff) | |
download | ilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.tar.bz2 ilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.tar.xz ilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.zip |
Fix train/vehicle constructors to take const links
Diffstat (limited to 'game/vehicles/train.h')
-rw-r--r-- | game/vehicles/train.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/vehicles/train.h b/game/vehicles/train.h index 4320103..4933347 100644 --- a/game/vehicles/train.h +++ b/game/vehicles/train.h @@ -17,7 +17,7 @@ template<typename> class Ray; class Train : public Vehicle, public Collection<RailVehicle, false>, public Can<Go>, public Can<Idle> { public: - explicit Train(const Link::Ptr & link, float linkDist = 0) : Vehicle {link, linkDist} { } + explicit Train(const Link::CPtr & link, float linkDist = 0) : Vehicle {link, linkDist} { } [[nodiscard]] const Location & getLocation() const override |