diff options
author | madmaxoft <github@xoft.cz> | 2014-07-21 18:07:51 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 18:07:51 +0200 |
commit | dd0ab044810d87dc4233a652087808638c696d94 (patch) | |
tree | d060243d62dedcf89e993b9316b3cd2ea9beefbf | |
parent | CheckBasicStyle: Added a lua shebang. (diff) | |
download | cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.gz cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.bz2 cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.lz cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.xz cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.zst cuberite-dd0ab044810d87dc4233a652087808638c696d94.zip |
-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 f095069d9..9f66cbf9b 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -470,7 +470,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>(Y, 0, 255); + a_BlockY = Clamp<unsigned char>((unsigned char)Y, 0, 255); } |