From 08f6e874a8930899714e2c0d313a9ed9f4eec35c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2021 14:52:04 +0000 Subject: Link weak_ptrs --- 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 cd2249d..d59588c 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -9,7 +9,7 @@ class Vehicle : public WorldObject, public Physical { public: Vehicle(const LinkPtr & link, const std::string & obj, const std::string & tex); - LinkPtr link; // Which link are we travelling along + LinkWPtr link; // Which link are we travelling along unsigned char linkDir {0}; // Starting end e0->e1 or e1->e0 float linkDist {0}; // distance long current link float speed {50}; // speed in m/s (~75 km/h) -- cgit v1.2.3