Switch from CurrentGauge pointer to using the gauge fields address directly (#2094)

This commit is contained in:
Infi 2024-11-16 23:51:38 +01:00 committed by GitHub
parent 8ccac255cb
commit c2588cec6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ internal class JobGauges : IServiceType, IJobGauges
}
/// <inheritdoc/>
public unsafe IntPtr Address => (nint)(CSJobGaugeManager.Instance()->CurrentGauge);
public unsafe IntPtr Address => (nint)(&CSJobGaugeManager.Instance()->EmptyGauge);
/// <inheritdoc/>
public T Get<T>() where T : JobGaugeBase