Merge pull request #702 from goatcorp/fatefix

This commit is contained in:
goaaats 2021-12-07 18:20:28 +01:00 committed by GitHub
commit 87aaab87a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>