summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkDesc.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-07-13 16:29:43 +0200
committerworktycho <work.tycho@gmail.com>2014-07-13 16:29:43 +0200
commit64697f0cabeeadf1d50717892f0815d8309f8b8a (patch)
tree061f2d5761f716747e57429c69ae3061fad866f4 /src/Generating/ChunkDesc.cpp
parentFix CopyPaste error that ment a_MaxRelX wasdn't checked (diff)
downloadcuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar.gz
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar.bz2
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar.lz
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar.xz
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.tar.zst
cuberite-64697f0cabeeadf1d50717892f0815d8309f8b8a.zip
Diffstat (limited to 'src/Generating/ChunkDesc.cpp')
-rw-r--r--src/Generating/ChunkDesc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/ChunkDesc.cpp b/src/Generating/ChunkDesc.cpp
index 570332615..c63ca6689 100644
--- a/src/Generating/ChunkDesc.cpp
+++ b/src/Generating/ChunkDesc.cpp
@@ -332,7 +332,7 @@ void cChunkDesc::ReadBlockArea(cBlockArea & a_Dest, int a_MinRelX, int a_MaxRelX
LOGWARNING("%s: MaxRelZ less than zero, adjusting to zero", __FUNCTION__);
a_MaxRelZ = 0;
}
- else if (a_MinRelZ >= cChunkDef::Width)
+ else if (a_MaxRelZ >= cChunkDef::Width)
{
LOGWARNING("%s: MaxRelZ more than chunk width, adjusting to chunk width", __FUNCTION__);
a_MaxRelZ = cChunkDef::Width - 1;