From b205d233bdd34e26d6bde31879c10b6cabf820b6 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 29 Jul 2020 18:51:39 +0100 Subject: Use std::queue for the block tick queue --- src/Chunk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Chunk.h') diff --git a/src/Chunk.h b/src/Chunk.h index 0965f1997..7e09ce8b6 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -594,7 +594,7 @@ private: bool m_IsSaving; // True if the chunk is being saved bool m_HasLoadFailed; // True if chunk failed to load and hasn't been generated yet since then - std::vector m_ToTickBlocks; + std::queue 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 -- cgit v1.2.3