diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 14:24:43 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 14:24:43 +0200 |
commit | 3278a403b5bc951818ed418c39c64934d55dbd65 (patch) | |
tree | 987d6d7a999ece0a87dce7231ad3f6e8639f5250 | |
parent | Added checks for no downfall biomes (diff) | |
download | cuberite-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.cpp | 2 |
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); |