summaryrefslogtreecommitdiff
path: root/game/vehicles/vehicle.cpp
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-11-05 20:05:05 +0000
commit6369d70e9e2952664bd7967ee2fd2280fc7f2b83 (patch)
treef7e2716318501ab4ab2cab92c3d5f0bed367d777 /game/vehicles/vehicle.cpp
parentFix GenDef for networks, should be globals (diff)
downloadilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.tar.bz2
ilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.tar.xz
ilt-6369d70e9e2952664bd7967ee2fd2280fc7f2b83.zip
Fix train/vehicle constructors to take const links
Diffstat (limited to 'game/vehicles/vehicle.cpp')
-rw-r--r--game/vehicles/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/vehicles/vehicle.cpp b/game/vehicles/vehicle.cpp
index 0d46017..dd652bc 100644
--- a/game/vehicles/vehicle.cpp
+++ b/game/vehicles/vehicle.cpp
@@ -15,7 +15,7 @@
#include <utility>
#include <vector>
-Vehicle::Vehicle(const Link::Ptr & l, float ld) : linkDist {ld}
+Vehicle::Vehicle(const Link::CPtr & l, float ld) : linkDist {ld}
{
linkHist.add(l, 0);
currentActivity = std::make_unique<Idle>();