diff options
author | Moritz Borcherding <moritz.borcherding@web.de> | 2016-09-18 21:43:30 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-09-27 14:32:20 +0200 |
commit | b268db4caae1b5612ae0f3adabf164efc06de368 (patch) | |
tree | a85e615101f7b61f0ebd8c2f73c5068c7b112f88 /src/Defines.h | |
parent | APIDump: Fixed description for tolua functions. (diff) | |
download | cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.gz cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.bz2 cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.lz cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.xz cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.zst cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Defines.h b/src/Defines.h index afd806c4e..b9a90cc81 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -557,7 +557,7 @@ inline void AddFaceDirection(int & a_BlockX, unsigned char & a_BlockY, int & a_B { int Y = a_BlockY; AddFaceDirection(a_BlockX, Y, a_BlockZ, a_BlockFace, a_bInverse); - a_BlockY = Clamp<unsigned char>(static_cast<unsigned char>(Y), 0, 255); + a_BlockY = Clamp<unsigned char>(static_cast<unsigned char>(Y), 0, cChunkDef::Height - 1); } |