mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-17 22:24:16 +01:00
Fix fate pointer math, size checking
This commit is contained in:
parent
da84c90696
commit
28c9ac3bac
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ namespace Dalamud.Game.ClientState.Fates
|
||||||
if (Struct->Fates.First == null || Struct->Fates.Last == null)
|
if (Struct->Fates.First == null || Struct->Fates.Last == null)
|
||||||
return 0;
|
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)
|
if (fateTable == IntPtr.Zero)
|
||||||
return IntPtr.Zero;
|
return IntPtr.Zero;
|
||||||
|
|
||||||
return *(IntPtr*)this.Struct->Fates.Get((ulong)index).Value;
|
return (IntPtr)this.Struct->Fates.Get((ulong)index).Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue