diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 2ba8827..98c5995 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -308,7 +308,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
308 | p = (OdePrim) prim; | 308 | p = (OdePrim) prim; |
309 | p.disableBody(); | 309 | p.disableBody(); |
310 | } | 310 | } |
311 | if (((OdePrim)prim).prim_geom != null) | 311 | if (!((OdePrim)prim).prim_geom.Equals(null)) |
312 | { | 312 | { |
313 | if (((OdePrim)prim).prim_geom != (IntPtr) 0) | 313 | if (((OdePrim)prim).prim_geom != (IntPtr) 0) |
314 | d.GeomDestroy(((OdePrim)prim).prim_geom); | 314 | d.GeomDestroy(((OdePrim)prim).prim_geom); |