summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-15 19:28:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-15 19:28:44 +0000
commit0f488d57dc05e31194cf129bf754bb2adf0a5b6e (patch)
tree47b45a4cb3049a2d665921205616051e94670983 /game
parentIncrease length of Brush47 (diff)
downloadilt-0f488d57dc05e31194cf129bf754bb2adf0a5b6e.tar.bz2
ilt-0f488d57dc05e31194cf129bf754bb2adf0a5b6e.tar.xz
ilt-0f488d57dc05e31194cf129bf754bb2adf0a5b6e.zip
Define a vehicle weak ptr
Diffstat (limited to 'game')
-rw-r--r--game/vehicles/vehicle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h
index 8a85a28..15d401b 100644
--- a/game/vehicles/vehicle.h
+++ b/game/vehicles/vehicle.h
@@ -4,6 +4,7 @@
#include "game/physical.h"
#include <game/network/link.h>
#include <game/worldobject.h>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -30,5 +31,6 @@ public:
protected:
LinkHistory linkHist;
};
+using VehicleWPtr = std::weak_ptr<Vehicle>;
#endif