Skip to content

Commit

Permalink
fix crashing when enter vehicle on s19+ i think
Browse files Browse the repository at this point in the history
  • Loading branch information
max8447 committed Jan 15, 2024
1 parent 61ff2ec commit b4ca8c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project Reboot 3.0/vehicles.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ static inline void ServerVehicleUpdate(UObject* Context, FFrame& Stack, void* Re

static auto K2_SetWorldTransformFn = FindObject<UFunction>(L"/Script/Engine.SceneComponent.K2_SetWorldTransform");
static auto SetPhysicsLinearVelocityFn = FindObject<UFunction>(L"/Script/Engine.PrimitiveComponent.SetPhysicsLinearVelocity");
static auto SetPhysicsAngularVelocityFn = FindObject<UFunction>(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity");
static auto SetPhysicsAngularVelocityFn = FindObject<UFunction>(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity") ? FindObject<UFunction>(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocity") :
FindObject<UFunction>(L"/Script/Engine.PrimitiveComponent.SetPhysicsAngularVelocityInDegrees");
static auto LinearVelocityOffset = FindOffsetStruct(StateStructName, "LinearVelocity");
static auto AngularVelocityOffset = FindOffsetStruct(StateStructName, "AngularVelocity");
static auto K2_SetWorldTransformParamSize = K2_SetWorldTransformFn->GetPropertiesSize();
Expand Down

0 comments on commit b4ca8c9

Please sign in to comment.