Fix fate pointer math, size checking

This commit is contained in:
Raymond 2021-12-07 09:34:49 -05:00
parent da84c90696
commit 28c9ac3bac

View file

@ -51,7 +51,7 @@ namespace Dalamud.Game.ClientState.Fates
if (Struct->Fates.First == null || Struct->Fates.Last == null)
return 0;
return (int)Struct->Fates.Capacity();
return (int)Struct->Fates.Size();
}
}
@ -99,7 +99,7 @@ namespace Dalamud.Game.ClientState.Fates
if (fateTable == IntPtr.Zero)
return IntPtr.Zero;
return *(IntPtr*)this.Struct->Fates.Get((ulong)index).Value;
return (IntPtr)this.Struct->Fates.Get((ulong)index).Value;
}
/// <summary>