summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkDesc.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-07-13 16:05:54 +0200
committerworktycho <work.tycho@gmail.com>2014-07-13 16:05:54 +0200
commitbfc485bfe2093dde665bc17588ea53218f964312 (patch)
tree3816c075a84780ddb4d8639986978e03fc328dfb /src/Generating/ChunkDesc.cpp
parentCheck GridSize for 0 (diff)
downloadcuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar.gz
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar.bz2
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar.lz
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar.xz
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.tar.zst
cuberite-bfc485bfe2093dde665bc17588ea53218f964312.zip
Diffstat (limited to '')
-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 7711723fc..570332615 100644
--- a/src/Generating/ChunkDesc.cpp
+++ b/src/Generating/ChunkDesc.cpp
@@ -290,7 +290,7 @@ void cChunkDesc::ReadBlockArea(cBlockArea & a_Dest, int a_MinRelX, int a_MaxRelX
LOGWARNING("%s: MaxRelX less than zero, adjusting to zero", __FUNCTION__);
a_MaxRelX = 0;
}
- else if (a_MinRelX >= cChunkDef::Width)
+ else if (a_MaxRelX >= cChunkDef::Width)
{
LOGWARNING("%s: MaxRelX more than chunk width, adjusting to chunk width", __FUNCTION__);
a_MaxRelX = cChunkDef::Width - 1;