summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 17:30:40 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 17:30:40 +0100
commite54373160b69c342dd1a625a841bda3707ba7acf (patch)
tree2a01aba188c6d79ab366cb4dbb0a4dc94ff31a55 /source/cPlayer.cpp
parentMissed a class in r94 ;) Sorry guys :D (diff)
downloadcuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar.gz
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar.bz2
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar.lz
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar.xz
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.tar.zst
cuberite-e54373160b69c342dd1a625a841bda3707ba7acf.zip
Diffstat (limited to '')
-rw-r--r--source/cPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp
index 65b6187a6..2087f7927 100644
--- a/source/cPlayer.cpp
+++ b/source/cPlayer.cpp
@@ -325,7 +325,7 @@ void cPlayer::Heal( int a_Health )
{
if( m_Health < 20 )
{
- m_Health = MIN(a_Health + m_Health, 20);
+ m_Health = (short) MIN(a_Health + m_Health, 20);
cPacket_UpdateHealth Health;
Health.m_Health = m_Health;