summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-04 11:26:31 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-04 11:26:31 +0200
commit8cdcfcceb38c057015d5822fa2ec06acf767f81d (patch)
tree67177f5bb577b4774496c9e8656497e9512c836b /src/Protocol/Protocol17x.cpp
parentMerge branch 'master' into GlobalFixes (diff)
downloadcuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar.gz
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar.bz2
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar.lz
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar.xz
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.tar.zst
cuberite-8cdcfcceb38c057015d5822fa2ec06acf767f81d.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index d6f4b96dc..8f3399b2f 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -3035,7 +3035,7 @@ void cProtocol176::SendPlayerSpawn(const cPlayer & a_Player)
const Json::Value & Properties = a_Player.GetClientHandle()->GetProperties();
Pkt.WriteVarInt(Properties.size());
- for (Json::Value::iterator itr = Properties.begin(); itr != Properties.end(); ++itr)
+ for (Json::Value::iterator itr = Properties.begin(), end = Properties.end(); itr != end; ++itr)
{
Pkt.WriteString(((Json::Value)*itr).get("name", "").asString());
Pkt.WriteString(((Json::Value)*itr).get("value", "").asString());