summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Chunk.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index de46b5f8f..ecb594191 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -519,9 +519,8 @@ private:
std::vector<Vector3i> m_ToTickBlocks;
sSetBlockVector m_PendingSendBlocks; ///< Blocks that have changed and need to be sent to all clients
- // A critical section is not needed, because all chunk access is protected by its parent ChunkMap's csLayers
- std::vector<cClientHandle *> m_LoadedByClient;
cEntityList m_Entities;
+ std::vector<std::weak_ptr<cClientHandle>> m_LoadedByClient;
cBlockEntityList m_BlockEntities;
/** Number of times the chunk has been requested to stay (by various cChunkStay objects); if zero, the chunk can be unloaded */