From a1c97e1b393b454ef73c7249ef82ff8994f21ae9 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 26 Apr 2023 23:31:03 +0200 Subject: [PATCH] Fix assignment bug Sigscan results returned to the wrong var. --- r5dev/engine/server/sv_main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/engine/server/sv_main.h b/r5dev/engine/server/sv_main.h index 7428c2c5..6f15d7fa 100644 --- a/r5dev/engine/server/sv_main.h +++ b/r5dev/engine/server/sv_main.h @@ -46,7 +46,7 @@ class HSV_Main : public IDetour { p_SV_InitGameDLL = g_GameDll.FindPatternSIMD("48 81 EC ?? ?? ?? ?? E8 ?? ?? ?? ?? 80 3D ?? ?? ?? ?? ?? 0F 85 ?? ?? ?? ??"); p_SV_ShutdownGameDLL = g_GameDll.FindPatternSIMD("48 83 EC 28 80 3D ?? ?? ?? ?? ?? 0F 84 ?? ?? ?? ?? 48 8B 0D ?? ?? ?? ?? 48"); - p_SV_CreateBaseline = g_GameDll.FindPatternSIMD("48 8B C4 56 48 81 EC ?? ?? ?? ?? 48 89 ?? ?? 48 8D"); + p_SV_ActivateServer = g_GameDll.FindPatternSIMD("48 8B C4 56 48 81 EC ?? ?? ?? ?? 48 89 ?? ?? 48 8D"); p_SV_CreateBaseline = g_GameDll.FindPatternSIMD("48 83 EC 28 48 8B 0D ?? ?? ?? ?? 48 85 C9 75 07"); #if defined (GAMEDLL_S0) || defined (GAMEDLL_S1) p_CGameServer__SpawnServer = g_GameDll.FindPatternSIMD("40 53 55 56 57 41 55 41 56 41 57 48 81 EC ?? ?? ?? ??"); @@ -56,7 +56,7 @@ class HSV_Main : public IDetour #endif v_SV_InitGameDLL = p_SV_InitGameDLL.RCast(); v_SV_ShutdownGameDLL = p_SV_ShutdownGameDLL.RCast(); - v_SV_ActivateServer = p_SV_CreateBaseline.RCast(); + v_SV_ActivateServer = p_SV_ActivateServer.RCast(); v_SV_CreateBaseline = p_SV_CreateBaseline.RCast(); CGameServer__SpawnServer = p_CGameServer__SpawnServer.RCast(); }