diff --git a/Dalamud/Game/ClientState/Actors/ActorTable.cs b/Dalamud/Game/ClientState/Actors/ActorTable.cs index 205f15faa..7c256c924 100644 --- a/Dalamud/Game/ClientState/Actors/ActorTable.cs +++ b/Dalamud/Game/ClientState/Actors/ActorTable.cs @@ -85,34 +85,10 @@ namespace Dalamud.Game.ClientState.Actors { } } - private class ActorTableEnumerator : IEnumerator { - private readonly ActorTable table; - - private int currentIndex; - - public ActorTableEnumerator(ActorTable table) { - this.table = table; - } - - public bool MoveNext() { - this.currentIndex++; - return this.currentIndex != this.table.Length; - } - - public void Reset() { - this.currentIndex = 0; - } - - public Actor Current => this.table[this.currentIndex]; - - object IEnumerator.Current => Current; - - // Required by IEnumerator even though we have nothing we want to dispose here. - public void Dispose() {} - } - public IEnumerator GetEnumerator() { - return new ActorTableEnumerator(this); + for (int i=0;i