Fix crash when cloth sim is still active

This commit is contained in:
Wojtek Figat
2026-03-25 12:27:50 +01:00
parent 1e1f7ce56d
commit 9850761b5c

View File

@@ -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())
{