diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index 9261df6b..8277a1fc 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -2523,6 +2523,9 @@ int CPhysics::ObjectAdapt(const Math::Vector &pos, const Math::Vector &angle) // iiPos = sphere center is the old position. // iPos = sphere center has the new position. + if (m_object->GetCrashSphereCount() < 1) + return 0; + auto firstCrashSphere = m_object->GetFirstCrashSphere(); Math::Vector iiPos = firstCrashSphere.sphere.pos; float iRad = firstCrashSphere.sphere.radius;