diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index e3bab2d..464d922 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -469,12 +469,10 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
469 | private void handleEstateTeleportAllUsersHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID) | 469 | private void handleEstateTeleportAllUsersHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID) |
470 | { | 470 | { |
471 | // Get a fresh list that will not change as people get teleported away | 471 | // Get a fresh list that will not change as people get teleported away |
472 | ScenePresence[] presences = m_scene.GetScenePresences(); | 472 | List<ScenePresence> presences = m_scene.GetScenePresences(); |
473 | 473 | ||
474 | for (int i = 0; i < presences.Length; i++) | 474 | foreach(ScenePresence p in presences) |
475 | { | 475 | { |
476 | ScenePresence p = presences[i]; | ||
477 | |||
478 | if (p.UUID != senderID) | 476 | if (p.UUID != senderID) |
479 | { | 477 | { |
480 | // make sure they are still there, we could be working down a long list | 478 | // make sure they are still there, we could be working down a long list |