summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-27 21:54:36 +0200
committerWoazboat <f.kargl@posteo.de>2015-04-27 21:54:36 +0200
commite240cab5239084301e2fd5273a208c2877d6957a (patch)
tree323abe99f4f92c9c25ac319c54483d8bc037df01 /src
parentcSetChunkData constructor explicitly requires std::move() instead of (diff)
downloadcuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar.gz
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar.bz2
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar.lz
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar.xz
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.tar.zst
cuberite-e240cab5239084301e2fd5273a208c2877d6957a.zip
Diffstat (limited to '')
-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
{