summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/SetChunkData.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp
index f2b58570d..e5afd96ed 100644
--- a/src/SetChunkData.cpp
+++ b/src/SetChunkData.cpp
@@ -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
{