mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Mac OS X 10.6 & More C++03 Support (#68)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -374,7 +374,7 @@ void LevelChunk::removeEntity(Entity* pEnt, int vec)
|
||||
if (vec < 0) vec = 0;
|
||||
if (vec > 7) vec = 7;
|
||||
|
||||
auto it = std::find(m_entities[vec].begin(), m_entities[vec].end(), pEnt);
|
||||
std::vector<Entity*>::iterator it = std::find(m_entities[vec].begin(), m_entities[vec].end(), pEnt);
|
||||
|
||||
if (it != m_entities[vec].end())
|
||||
m_entities[vec].erase(it);
|
||||
@@ -583,7 +583,7 @@ void LevelChunk::getEntities(Entity* pEntExclude, const AABB& aabb, std::vector<
|
||||
|
||||
for (int b = lowerBound; b <= upperBound; b++)
|
||||
{
|
||||
for (auto it = m_entities[b].begin(); it != m_entities[b].end(); it++)
|
||||
for (std::vector<Entity*>::iterator it = m_entities[b].begin(); it != m_entities[b].end(); it++)
|
||||
{
|
||||
Entity* ent = *it;
|
||||
if (ent == pEntExclude) continue;
|
||||
|
||||
Reference in New Issue
Block a user