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/vehicle.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/vehicle.h')
-rw-r--r-- | game/vehicles/vehicle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 354f904..c3b35b7 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -14,7 +14,7 @@ class Location; class Vehicle : public WorldObject, public Selectable { public: - explicit Vehicle(const Link::Ptr & link, float linkDist = 0); + explicit Vehicle(const Link::CPtr & link, float linkDist = 0); float linkDist; // distance along current link float speed {}; // speed in m/s (~75 km/h) |