summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-09-25 17:45:11 +0200
committerworktycho <work.tycho@gmail.com>2015-09-25 17:45:11 +0200
commit335374376bff16459eb3e3585a93f931e1b3c306 (patch)
tree3b6665c38ce5881b0d8345ee7bc495a5b97a0457 /src/Chunk.cpp
parentMerge pull request #2491 from cuberite/FixLilypadPopout (diff)
parentMaked it compileable for clang-3.7 (diff)
downloadcuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.gz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.bz2
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.lz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.xz
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.tar.zst
cuberite-335374376bff16459eb3e3585a93f931e1b3c306.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
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<cMonster &>(*entity);
currentPosition = Monster.GetPosition();
- for (const auto PlayerPos : PlayerPositions)
+ for (const auto & PlayerPos : PlayerPositions)
{
toFill.CollectMob(Monster, *this, (currentPosition - PlayerPos).SqrLength());
}