Skip to content

Commit

Permalink
Updated gpose actor index end; Fixed collection enumeration error
Browse files Browse the repository at this point in the history
  • Loading branch information
ergoxiv committed Nov 23, 2024
1 parent fcea231 commit c628035
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Anamnesis/Memory/ActorBasicMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

namespace Anamnesis.Memory;

using System;
using System.Collections.Generic;
using Anamnesis.Actor;
using Anamnesis.Services;
using Anamnesis.Styles;
using Anamnesis.Utils;
using FontAwesome.Sharp;
using PropertyChanged;
using System;
using System.Collections.Generic;

public class ActorBasicMemory : MemoryBase
{
Expand Down Expand Up @@ -45,7 +44,7 @@ public enum RenderModes : uint
public string? Nickname { get; set; }

[DependsOn(nameof(ObjectIndex))]
public virtual bool IsGPoseActor => this.ObjectIndex >= 200 && this.ObjectIndex < 244;
public virtual bool IsGPoseActor => this.ObjectIndex >= 200 && this.ObjectIndex < 440;

[DependsOn(nameof(IsGPoseActor))]
public bool IsOverworldActor => !this.IsGPoseActor;
Expand Down
2 changes: 1 addition & 1 deletion Anamnesis/Services/ActorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ActorService : ServiceBase<ActorService>
private const int TickDelay = 10;
private const int ActorTableSize = 819;
private const int GPoseIndexStart = 200;
private const int GPoseIndexEnd = 244;
private const int GPoseIndexEnd = 440;
private const int OverworldPlayerIndex = 0;
private const int GPosePlayerIndex = 201;

Expand Down
3 changes: 2 additions & 1 deletion Anamnesis/Services/TargetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Anamnesis;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using XivToolsWpf;

Expand Down Expand Up @@ -120,7 +121,7 @@ public static void UnpinActor(PinnedActor actor)

public static PinnedActor? GetPinned(ActorBasicMemory actor)
{
foreach (PinnedActor pinned in TargetService.Instance.PinnedActors)
foreach (PinnedActor pinned in TargetService.Instance.PinnedActors.ToList())
{
if (pinned.Memory == null)
continue;
Expand Down

0 comments on commit c628035

Please sign in to comment.