summaryrefslogtreecommitdiffstats
path: root/src/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 23:20:00 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 23:20:00 +0200
commit6bdd3ee35e85768634e41af86a99bbdd933ffb3a (patch)
tree5481ae6b270a197f4a57341dfc42fb98343022b0 /src/BlockID.cpp
parentMerge branch 'master' into SslWebAdmin (diff)
parentFixed a warning in Noise. (diff)
downloadcuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.gz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.bz2
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.lz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.xz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.zst
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.zip
Diffstat (limited to 'src/BlockID.cpp')
-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