summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Generating/ChunkDesc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.cpp b/source/Generating/ChunkDesc.cpp
index 00ccacc07..9a2f2eff5 100644
--- a/source/Generating/ChunkDesc.cpp
+++ b/source/Generating/ChunkDesc.cpp
@@ -272,7 +272,7 @@ void cChunkDesc::WriteBlockArea(const cBlockArea & a_BlockArea, int a_RelX, int
for (int x = 0; x < SizeX; x++)
{
int BAX = BAOffX + x;
- int CDX = BAOffX + x;
+ int CDX = CDOffX + x;
cChunkDef::SetBlock(m_BlockTypes, CDX, CDY, CDZ, a_BlockArea.GetRelBlockType(BAX, BAY, BAZ));
} // for x
} // for z
@@ -292,7 +292,7 @@ void cChunkDesc::WriteBlockArea(const cBlockArea & a_BlockArea, int a_RelX, int
for (int x = 0; x < SizeX; x++)
{
int BAX = BAOffX + x;
- int CDX = BAOffX + x;
+ int CDX = CDOffX + x;
cChunkDef::SetNibble(m_BlockMeta, CDX, CDY, CDZ, a_BlockArea.GetRelBlockMeta(BAX, BAY, BAZ));
} // for x
} // for z