summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Defines.h')
-rw-r--r--src/Defines.h2
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);
}