mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-07 03:16:55 +08:00
Use correct size integer type, fix compiler warning.
This commit is contained in:
parent
09ab9dba1b
commit
669b421366
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user