summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 22:47:02 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 22:47:02 +0200
commita4d8c6d656da6b3b4c986361213bb65540a08e80 (patch)
tree8a6444268f319c0f65a0d049b9752f586eab0727 /src
parentFixed warnings in cBlockArea. (diff)
downloadcuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar.gz
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar.bz2
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar.lz
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar.xz
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.tar.zst
cuberite-a4d8c6d656da6b3b4c986361213bb65540a08e80.zip
Diffstat (limited to '')
-rw-r--r--src/BlockID.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp
index bf95d0798..bfe826f40 100644
--- a/src/BlockID.cpp
+++ b/src/BlockID.cpp
@@ -102,7 +102,7 @@ public:
return true;
}
- a_Item.m_ItemDamage = atoi(Split[1].c_str());
+ a_Item.m_ItemDamage = (short)atoi(Split[1].c_str());
if ((a_Item.m_ItemDamage == 0) && (Split[1] != "0"))
{
// Parsing the number failed