summaryrefslogtreecommitdiff
path: root/game/vehicles/train.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-10-31 00:25:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-10-31 00:25:55 +0000
commit221b5f1f99470ccf487fb5d23eb16b7b53ed5588 (patch)
treef7e2716318501ab4ab2cab92c3d5f0bed367d777 /game/vehicles/train.h
parentFix GenDef for networks, should be globals (diff)
downloadilt-221b5f1f99470ccf487fb5d23eb16b7b53ed5588.tar.bz2
ilt-221b5f1f99470ccf487fb5d23eb16b7b53ed5588.tar.xz
ilt-221b5f1f99470ccf487fb5d23eb16b7b53ed5588.zip
Fix train/vehicle constructors to take const links
Diffstat (limited to 'game/vehicles/train.h')
-rw-r--r--game/vehicles/train.h2
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