diff --git a/WickedEngine/wiPhysics_Jolt.cpp b/WickedEngine/wiPhysics_Jolt.cpp index 60c5582a7..01f55b1c9 100644 --- a/WickedEngine/wiPhysics_Jolt.cpp +++ b/WickedEngine/wiPhysics_Jolt.cpp @@ -2586,6 +2586,8 @@ namespace wi::physics void OverrideWehicleWheelTransforms(wi::scene::Scene& scene) { + if (scene.physics_scene == nullptr) + return; if (!IsSimulationEnabled()) return; PhysicsScene& physics_scene = GetPhysicsScene(scene);