diff options
author | worktycho <work.tycho@gmail.com> | 2014-07-13 16:29:43 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-07-13 16:29:43 +0200 |
commit | 64697f0cabeeadf1d50717892f0815d8309f8b8a (patch) | |
tree | 061f2d5761f716747e57429c69ae3061fad866f4 /src/Generating/ChunkDesc.cpp | |
parent | Fix CopyPaste error that ment a_MaxRelX wasdn't checked (diff) | |
download | cuberite-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 '')
-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 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; |