summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 14:24:43 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 14:24:43 +0200
commit3278a403b5bc951818ed418c39c64934d55dbd65 (patch)
tree987d6d7a999ece0a87dce7231ad3f6e8639f5250 /src/Chunk.cpp
parentAdded checks for no downfall biomes (diff)
downloadcuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar.gz
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar.bz2
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar.lz
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar.xz
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.tar.zst
cuberite-3278a403b5bc951818ed418c39c64934d55dbd65.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 59f4a8507..c6122852a 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -588,7 +588,7 @@ void cChunk::Tick(float a_Dt)
for (cEntityList::iterator itr = m_Entities.begin(); itr != m_Entities.end();)
{
- auto itr2 = std::find(m_EntitiesToRemove.begin(), m_EntitiesToRemove.end(), (*itr)->GetUniqueID());
+ std::vector<int>::const_iterator itr2 = std::find(m_EntitiesToRemove.begin(), m_EntitiesToRemove.end(), (*itr)->GetUniqueID());
if (itr2 != m_EntitiesToRemove.end())
{
itr = m_Entities.erase(itr);