Removed redundant temp iterator. std::list.erase already returns
iterator to next valid list element
This commit is contained in:
parent
6caf08da99
commit
e240cab523
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user