From e56aa4032d6fad249fc7729c7ce8975cf617eb9c Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Thu, 24 Sep 2015 16:04:44 +0200 Subject: Maked it compileable for clang-3.7 --- src/Chunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 7a6938b77..39a5a6053 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -490,7 +490,7 @@ void cChunk::CollectMobCensus(cMobCensus & toFill) { auto & Monster = reinterpret_cast(*entity); currentPosition = Monster.GetPosition(); - for (const auto PlayerPos : PlayerPositions) + for (const auto & PlayerPos : PlayerPositions) { toFill.CollectMob(Monster, *this, (currentPosition - PlayerPos).SqrLength()); } -- cgit v1.2.3