diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-09-24 16:04:44 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-09-25 17:09:19 +0200 |
commit | e56aa4032d6fad249fc7729c7ce8975cf617eb9c (patch) | |
tree | 3b6665c38ce5881b0d8345ee7bc495a5b97a0457 /src/Chunk.cpp | |
parent | Merge pull request #2491 from cuberite/FixLilypadPopout (diff) | |
download | cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.gz cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.bz2 cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.lz cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.xz cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.tar.zst cuberite-e56aa4032d6fad249fc7729c7ce8975cf617eb9c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Chunk.cpp | 2 |
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()); } |