1
0

Fixed cWorld:ForEachEntity()

Fix for FS #374.
The function was processing only one chunkmap layer object, due to an inverse condition.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1491 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-05-19 15:44:21 +00:00
parent 950d7f5f2d
commit e32cffbbdd

View File

@ -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;
}