diff options
Diffstat (limited to '')
-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); } |