summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.cpp
diff options
context:
space:
mode:
authorKirill Kirilenko <kirill@ultracoder.org>2015-01-17 14:00:12 +0100
committerKirill Kirilenko <kirill@ultracoder.org>2015-01-17 14:00:12 +0100
commit41f30edcf77521630b7f69d3e94338e6ab2f821f (patch)
tree7dabeb891ea4d1efc8cbc9c55d5530cf9e9d301a /src/SetChunkData.cpp
parentFixed CppCheck: (performance) Possible inefficient checking for emptiness. (diff)
downloadcuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar.gz
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar.bz2
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar.lz
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar.xz
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.tar.zst
cuberite-41f30edcf77521630b7f69d3e94338e6ab2f821f.zip
Diffstat (limited to 'src/SetChunkData.cpp')
-rw-r--r--src/SetChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp
index e335176a8..5a0bea980 100644
--- a/src/SetChunkData.cpp
+++ b/src/SetChunkData.cpp
@@ -132,7 +132,7 @@ void cSetChunkData::RemoveInvalidBlockEntities(void)
ItemTypeToString(WorldBlockType).c_str(), WorldBlockType
);
cBlockEntityList::iterator itr2 = itr;
- itr2++;
+ ++itr2;
delete *itr;
m_BlockEntities.erase(itr);
itr = itr2;