diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 6ade6388b6..507030b005 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -882,8 +882,11 @@ namespace OpenSim.Region.Physics.OdePlugin } if (m_isphysical) { - d.BodySetLinearVel(Body, 0f, 0f, 0f); - enableBodySoft(); + if (Body != IntPtr.Zero) + { + d.BodySetLinearVel(Body, 0f, 0f, 0f); + enableBodySoft(); + } } }