diff --git a/managed/CounterStrikeSharp.API/Core/Model/CCSGameRules.cs b/managed/CounterStrikeSharp.API/Core/Model/CCSGameRules.cs index 029145482..08370f421 100644 --- a/managed/CounterStrikeSharp.API/Core/Model/CCSGameRules.cs +++ b/managed/CounterStrikeSharp.API/Core/Model/CCSGameRules.cs @@ -39,13 +39,13 @@ public void TerminateRound(float delay, RoundEndReason roundEndReason) if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - VirtualFunctionWithReturn CCSGameRules_FindPickerEntity = new(Handle, GameData.GetOffset("CCSGameRules_FindPickerEntity")); - return CCSGameRules_FindPickerEntity.Invoke(this, player, null); + VirtualFunctionWithReturn CCSGameRules_FindPickerEntity = new(Handle, GameData.GetOffset("CCSGameRules_FindPickerEntity")); + return CCSGameRules_FindPickerEntity.Invoke(this, player, IntPtr.Zero); } else { - VirtualFunctionWithReturn CCSGameRules_FindPickerEntity = new(Handle, GameData.GetOffset("CCSGameRules_FindPickerEntity")); - return CCSGameRules_FindPickerEntity.Invoke(this, player, null, 0, 0); // on linux we have a fourth and fifth parameter aswell, but they are unused because the condition for them is always unmet. + VirtualFunctionWithReturn CCSGameRules_FindPickerEntity = new(Handle, GameData.GetOffset("CCSGameRules_FindPickerEntity")); + return CCSGameRules_FindPickerEntity.Invoke(this, player, IntPtr.Zero, 0, 0); // on linux we have a fourth and fifth parameter aswell, but they are unused because the condition for them is always unmet. } }