Some cleanup with foreach
This commit is contained in:
@@ -23,9 +23,9 @@ namespace OpenMetaverse.TestClient
|
||||
|
||||
lock (Client.Network.Simulators)
|
||||
{
|
||||
for (int i = 0; i < Client.Network.Simulators.Count; i++)
|
||||
foreach (var sim in Client.Network.Simulators)
|
||||
{
|
||||
Avatar master = Client.Network.Simulators[i].ObjectsAvatars.Find(
|
||||
Avatar master = sim.ObjectsAvatars.Find(
|
||||
avatar => avatar.ID == Client.MasterKey
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user