diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs index 46bc8d92..17cb0856 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs @@ -227,8 +227,8 @@ internal sealed class GameFpsUnlocker : IGameFpsUnlocker nuint localMemoryUserAssemblyAddress = localMemoryUnityPlayerAddress + unityPlayer.Size; nuint rip = localMemoryUserAssemblyAddress + (uint)offset; - rip += 5; - rip += (uint)*(int*)(rip + 2) + 6; + rip += 5U; + rip += (nuint)(*(int*)(rip + 2)) + 6U; nuint address = userAssembly.Address + (rip - localMemoryUserAssemblyAddress);