summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r--src/ClientHandle.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 9b7e3dd58..9e1d1a9b5 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -12,7 +12,6 @@
#include "OSSupport/Network.h"
#include "Defines.h"
#include "Scoreboard.h"
-#include "Map.h"
#include "UI/SlotArea.h"
#include "json/json.h"
#include "ChunkSender.h"
@@ -34,6 +33,7 @@ class cWindow;
class cFallingBlock;
class cCompositeChat;
class cStatManager;
+class cMap;
class cClientHandle;
typedef std::shared_ptr<cClientHandle> cClientHandlePtr;
@@ -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<cPlayer> 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