diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-09-07 10:40:58 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-09-11 23:20:12 +0200 |
commit | 115bc5609ad73d08ba90702519754f48866ec341 (patch) | |
tree | 571a0600a3e455e95490fd2a7b77a73074c5f7df /src/Chunk.cpp | |
parent | cBlockArea: use unique_ptr (diff) | |
download | cuberite-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.cpp | 2 |
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); |