From 4ef47aed62364f9cf1474864e5cf94232b4477af Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 19 Dec 2016 20:12:23 +0000 Subject: Changed entity ownership model to use smart pointers --- src/ClientHandle.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 9b7e3dd58..617f18c7a 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -416,6 +416,9 @@ private: cPlayer * m_Player; + // Temporary (#3115-will-fix): maintain temporary ownership of created cPlayer objects while they are in limbo + std::unique_ptr m_PlayerPtr; + /** This is an optimization which saves you an iteration of m_SentChunks if you just want to know whether or not the player is standing at a sent chunk. If this is equal to the coordinates of the chunk the player is currrently standing at, then this must be a sent chunk -- cgit v1.2.3