1
0
Fork 0

Removed redundant temp iterator. std::list.erase already returns

iterator to next valid list element
This commit is contained in:
Woazboat 2015-04-27 21:54:36 +02:00
parent 6caf08da99
commit e240cab523
1 changed files with 1 additions and 4 deletions

View File

@ -131,11 +131,8 @@ void cSetChunkData::RemoveInvalidBlockEntities(void)
ItemTypeToString(EntityBlockType).c_str(), EntityBlockType,
ItemTypeToString(WorldBlockType).c_str(), WorldBlockType
);
cBlockEntityList::iterator itr2 = itr;
++itr2;
delete *itr;
m_BlockEntities.erase(itr);
itr = itr2;
itr = m_BlockEntities.erase(itr);
}
else
{