aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 03b22ae..6692d97 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -465,7 +465,7 @@ namespace OpenSim.Region.Physics.OdePlugin
465 else 465 else
466 { 466 {
467 IntPtr sGeomIsIn = d.GeomGetSpace(geom); 467 IntPtr sGeomIsIn = d.GeomGetSpace(geom);
468 if (sGeomIsIn != null) 468 if (!(sGeomIsIn.Equals(null)))
469 d.SpaceRemove(sGeomIsIn, geom); 469 d.SpaceRemove(sGeomIsIn, geom);
470 } 470 }
471 471
@@ -490,7 +490,7 @@ namespace OpenSim.Region.Physics.OdePlugin
490 else 490 else
491 { 491 {
492 IntPtr sGeomIsIn = d.GeomGetSpace(geom); 492 IntPtr sGeomIsIn = d.GeomGetSpace(geom);
493 if (sGeomIsIn != null) 493 if (!(sGeomIsIn.Equals(null)))
494 d.SpaceRemove(sGeomIsIn, geom); 494 d.SpaceRemove(sGeomIsIn, geom);
495 } 495 }
496 } 496 }