From 115bc5609ad73d08ba90702519754f48866ec341 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Thu, 7 Sep 2017 09:40:58 +0100 Subject: cBlockArea: change MakeIndex to return size_t --- src/Chunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 78a8461d3..3effcb690 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -443,7 +443,7 @@ void cChunk::WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlock { int ChunkX = OffX + x; int AreaX = BaseX + x; - int idx = a_Area.MakeIndex(AreaX, AreaY, AreaZ); + auto idx = a_Area.MakeIndex(AreaX, AreaY, AreaZ); BLOCKTYPE BlockType = AreaBlockTypes[idx]; NIBBLETYPE BlockMeta = AreaBlockMetas[idx]; FastSetBlock(ChunkX, ChunkY, ChunkZ, BlockType, BlockMeta); -- cgit v1.2.3