1
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

View File

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