summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-29 08:55:26 +0200
committerMattes D <github@xoft.cz>2014-06-29 08:55:26 +0200
commit3b3160d6b4cd4c1823881e918cf94f3c5113e9c6 (patch)
tree0e2fe234f7538a3f0da2bca1ba3e0dcc411a8e1e /src/Protocol
parentMerge pull request #1132 from mc-server/RemoveMD5 (diff)
parentSend statistics to the player, when he logged in. (diff)
downloadcuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar.gz
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar.bz2
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar.lz
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar.xz
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.tar.zst
cuberite-3b3160d6b4cd4c1823881e918cf94f3c5113e9c6.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 49fef0b8e..98fabedb2 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1221,10 +1221,9 @@ void cProtocol172::SendStatistics(const cStatManager & a_Manager)
cPacketizer Pkt(*this, 0x37);
Pkt.WriteVarInt(statCount); // TODO 2014-05-11 xdot: Optimization: Send "dirty" statistics only
- for (unsigned int i = 0; i < (unsigned int)statCount; ++i)
+ for (size_t i = 0; i < (size_t)statCount; ++i)
{
StatValue Value = a_Manager.GetValue((eStatistic) i);
-
const AString & StatName = cStatInfo::GetName((eStatistic) i);
Pkt.WriteString(StatName);