summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/ChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ChunkMap.cpp b/source/ChunkMap.cpp
index 3e9fd4a81..6db737451 100644
--- a/source/ChunkMap.cpp
+++ b/source/ChunkMap.cpp
@@ -1423,7 +1423,7 @@ bool cChunkMap::ForEachEntity(cEntityCallback & a_Callback)
cCSLock Lock(m_CSLayers);
for (cChunkLayerList::const_iterator itr = m_Layers.begin(); itr != m_Layers.end(); ++itr)
{
- if ((*itr)->ForEachEntity(a_Callback))
+ if (!(*itr)->ForEachEntity(a_Callback))
{
return false;
}