diff options
author | worktycho <work.tycho@gmail.com> | 2014-07-13 16:05:54 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-07-13 16:05:54 +0200 |
commit | bfc485bfe2093dde665bc17588ea53218f964312 (patch) | |
tree | 3816c075a84780ddb4d8639986978e03fc328dfb /src/Generating/ChunkDesc.cpp | |
parent | Check GridSize for 0 (diff) | |
download | cuberite-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 'src/Generating/ChunkDesc.cpp')
-rw-r--r-- | src/Generating/ChunkDesc.cpp | 2 |
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; |