From 9850761b5cc314242cdf58b1239b7342cd460efb Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 25 Mar 2026 12:27:50 +0100 Subject: [PATCH] Fix crash when cloth sim is still active --- Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp b/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp index 64fe6fd65..02e23d890 100644 --- a/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp +++ b/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp @@ -1180,6 +1180,8 @@ void ScenePhysX::PreSimulateCloth(int32 i) PROFILE_MEM(PhysicsCloth); auto clothPhysX = ClothsList[i]; auto& clothSettings = Cloths[clothPhysX]; + if (!clothSettings.Actor) + return; if (clothSettings.Actor->OnPreUpdate()) {