| 394 | |
| 395 | |
| 396 | bool cRoot::ForEachWorld(cWorldListCallback & a_Callback) |
| 397 | { |
| 398 | for (WorldMap::iterator itr = m_WorldsByName.begin(), itr2 = itr; itr != m_WorldsByName.end(); itr = itr2) |
| 399 | { |
| 400 | ++itr2; |
| 401 | if (a_Callback.Item(itr->second)) |
| 402 | { |
| 403 | return false; |
| 404 | } |
| 405 | } |
| 406 | return true; |
| 407 | } |
| 408 | |
| 409 | |
| 410 |