From b4ca8c9bfe669f5288f970825f2a901072a7e6b2 Mon Sep 17 00:00:00 2001 From: max_the Date: Mon, 15 Jan 2024 19:51:22 +0100 Subject: [PATCH] fix crashing when enter vehicle on s19+ i think --- Project Reboot 3.0/vehicles.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/vehicles.h b/Project Reboot 3.0/vehicles.h index 8a426f8..0f40c7f 100644 --- a/Project Reboot 3.0/vehicles.h +++ b/Project Reboot 3.0/vehicles.h @@ -66,7 +66,8 @@ static inline void ServerVehicleUpdate(UObject* Context, FFrame& Stack, void* Re static auto K2_SetWorldTransformFn = FindObject(L"/Script/Engine.SceneComponent.K2_SetWorldTransform"); static auto SetPhysicsLinearVelocityFn = FindObject(L"/Script/Engine.PrimitiveComponent.SetPhysicsLinearVelocity"); - static auto SetPhysicsAngularVelocityFn = FindObject(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity"); + static auto SetPhysicsAngularVelocityFn = FindObject(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity") ? FindObject(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity") : + FindObject(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocityInDegrees"); static auto LinearVelocityOffset = FindOffsetStruct(StateStructName, "LinearVelocity"); static auto AngularVelocityOffset = FindOffsetStruct(StateStructName, "AngularVelocity"); static auto K2_SetWorldTransformParamSize = K2_SetWorldTransformFn->GetPropertiesSize();