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:
parent
950d7f5f2d
commit
e32cffbbdd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user