From d674f856ef52f8693f807976fe207deeac92dd39 Mon Sep 17 00:00:00 2001 From: STL1te Date: Fri, 22 Aug 2025 14:00:39 +0300 Subject: [PATCH] Removed nullable args --- managed/CounterStrikeSharp.API/Core/Model/CCSGameRules.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. } }