From 1fc61ba184b49ffec941cfac6bc93f5e81534d90 Mon Sep 17 00:00:00 2001 From: explorer Date: Sun, 2 Feb 2025 16:29:39 +0300 Subject: [PATCH] ensure pointer isn't dangling (on reconnect) which is undefined behaviour, as memory isn't necessarily deallocated --- Move.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Move.hpp b/Move.hpp index 7a88478..2c52f20 100644 --- a/Move.hpp +++ b/Move.hpp @@ -14,11 +14,11 @@ void Redirected_Move(float Unknown_Parameter, __int8 Final) { Redirected_Read_Packets(Final); + Local_Player = *(void**)((unsigned __int32)Client_Module + 7498712); + Run_Prediction_Type((unsigned __int32)Engine_Module + 527776)(); - using Update_Animations_Type = void(__cdecl*)(); - - Update_Animations_Type((unsigned __int32)Client_Module + 205296)(); + Redirected_Update_Animations(); using Fire_Events_Type = void(__cdecl*)(); @@ -28,7 +28,7 @@ void Redirected_Move(float Unknown_Parameter, __int8 Final) Update_Animation_Type = 1; - Update_Animations_Type((unsigned __int32)Client_Module + 205296)(); + Redirected_Update_Animations(); Update_Animation_Type = 0; }