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/train.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/vehicles/train.h') 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 class Ray; class Train : public Vehicle, public Collection, public Can, public Can { 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 -- cgit v1.2.3