summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-20 18:18:08 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-20 18:18:08 +0200
commita341419b047bd76cc3572f5d3906500a7112e202 (patch)
tree1dd7ee5497546420714dc673f48078a4565198d0 /src/Protocol/Protocol18x.cpp
parentMerge pull request #2379 from cuberite/hunger (diff)
parentUse container-based infrastructure for Travis (diff)
downloadcuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.gz
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.bz2
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.lz
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.xz
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.zst
cuberite-a341419b047bd76cc3572f5d3906500a7112e202.zip
Diffstat (limited to 'src/Protocol/Protocol18x.cpp')
-rw-r--r--src/Protocol/Protocol18x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index 58cc839f0..115028fa9 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -724,7 +724,7 @@ void cProtocol180::SendMapData(const cMap & a_Map, int a_DataStartX, int a_DataS
Pkt.WriteBEUInt8(static_cast<UInt8>(a_Map.GetScale()));
Pkt.WriteVarInt32(static_cast<UInt32>(a_Map.GetDecorators().size()));
- for (const auto Decorator : a_Map.GetDecorators())
+ for (const auto & Decorator : a_Map.GetDecorators())
{
Pkt.WriteBEUInt8(static_cast<Byte>((static_cast<Int32>(Decorator.GetType()) << 4) | (Decorator.GetRot() & 0xF)));
Pkt.WriteBEUInt8(static_cast<UInt8>(Decorator.GetPixelX()));