mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Put kind check on the correct function
This commit is contained in:
parent
fe3faa3738
commit
28ad006fe5
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable
|
|||
{
|
||||
for (var index = 0; index < 200; index += 2)
|
||||
{
|
||||
if (this[index] is IBattleChara gameObject)
|
||||
if (this[index] is IBattleChara { ObjectKind: ObjectKind.Player } gameObject)
|
||||
{
|
||||
yield return gameObject;
|
||||
}
|
||||
|
|
@ -179,7 +179,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable
|
|||
{
|
||||
for (var index = range.Start.Value; index <= range.End.Value; index++)
|
||||
{
|
||||
if (this[index] is { ObjectKind: ObjectKind.Player } gameObject)
|
||||
if (this[index] is { } gameObject)
|
||||
{
|
||||
yield return gameObject;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue