summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-07 10:40:58 +0200
committerMattes D <github@xoft.cz>2017-09-11 23:20:12 +0200
commit115bc5609ad73d08ba90702519754f48866ec341 (patch)
tree571a0600a3e455e95490fd2a7b77a73074c5f7df /src/Chunk.cpp
parentcBlockArea: use unique_ptr (diff)
downloadcuberite-115bc5609ad73d08ba90702519754f48866ec341.tar
cuberite-115bc5609ad73d08ba90702519754f48866ec341.tar.gz
cuberite-115bc5609ad73d08ba90702519754f48866ec341.tar.bz2
cuberite-115bc5609ad73d08ba90702519754f48866ec341.tar.lz
cuberite-115bc5609ad73d08ba90702519754f48866ec341.tar.xz
cuberite-115bc5609ad73d08ba90702519754f48866ec341.tar.zst
cuberite-115bc5609ad73d08ba90702519754f48866ec341.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
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);