mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 07:17:45 +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)
|
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;
|
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++)
|
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;
|
yield return gameObject;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue