summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-08-31 21:28:41 +0200
committerworktycho <work.tycho@gmail.com>2014-08-31 21:28:41 +0200
commit3e7332c70ceb372afcd2abf431c6b4c222fe9359 (patch)
tree1049374898447556889860652f3e32bf8ccc2630 /src/SetChunkData.cpp
parentInit RankMgr pointer to NULL (diff)
downloadcuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar.gz
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar.bz2
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar.lz
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar.xz
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.tar.zst
cuberite-3e7332c70ceb372afcd2abf431c6b4c222fe9359.zip
Diffstat (limited to '')
-rw-r--r--src/SetChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp
index 97903074a..bfe59fbcb 100644
--- a/src/SetChunkData.cpp
+++ b/src/SetChunkData.cpp
@@ -134,8 +134,8 @@ void cSetChunkData::RemoveInvalidBlockEntities(void)
);
cBlockEntityList::iterator itr2 = itr;
itr2++;
- m_BlockEntities.erase(itr);
delete *itr;
+ m_BlockEntities.erase(itr);
itr = itr2;
}
else