From 669b4213668c046693459ced1886a3ed7b011761 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Mon, 4 Nov 2024 23:06:04 +0000 Subject: Use correct size integer type, fix compiler warning. --- src/Protocol/ChunkDataSerializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ChunkDataSerializer.cpp b/src/Protocol/ChunkDataSerializer.cpp index 6f95fb472..fa396e81d 100644 --- a/src/Protocol/ChunkDataSerializer.cpp +++ b/src/Protocol/ChunkDataSerializer.cpp @@ -503,7 +503,7 @@ inline void cChunkDataSerializer::Serialize477(const int a_ChunkX, const int a_C ChunkDef_ForEachSection(a_BlockData, a_LightData, { // Count non-air blocks. - int BlockCount = 0; + Int16 BlockCount = 0; if (Blocks != nullptr) { for (size_t i = 0; i != ChunkBlockData::SectionBlockCount; i++) -- cgit v1.2.3