mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Add null check
https://discordapp.com/channels/581875019861328007/653504487352303619/715342854737625111
This commit is contained in:
parent
e95dfa8320
commit
dca6a2b815
1 changed files with 3 additions and 1 deletions
|
|
@ -87,7 +87,9 @@ namespace Dalamud.Game.ClientState.Actors {
|
|||
|
||||
public IEnumerator<Actor> GetEnumerator() {
|
||||
for (int i=0;i<Length;i++){
|
||||
yield return this[i];
|
||||
if (this[i] != null) {
|
||||
yield return this[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue