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/network/link.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game/network/link.h') diff --git a/game/network/link.h b/game/network/link.h index d4ae4c6..207ecd0 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -28,6 +28,7 @@ using NodePtr = std::shared_ptr; // it joins 2 nodes class Link; using LinkPtr = std::shared_ptr; +using LinkWPtr = std::weak_ptr; class Link { public: using End = std::pair; @@ -41,7 +42,7 @@ public: std::array ends; float length; - using Next = std::pair; + using Next = std::pair; std::array, 2> nexts; }; -- cgit v1.2.3