From 6369d70e9e2952664bd7967ee2fd2280fc7f2b83 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 31 Oct 2024 00:25:55 +0000 Subject: Fix train/vehicle constructors to take const links --- game/vehicles/vehicle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/vehicles/vehicle.h') 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) -- cgit v1.2.3