From 54df1a57d73aad43dfcbc7f298830b548e37a9af Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 17 Nov 2007 21:00:35 +0000 Subject: [PATCH] * Fix Null comparison for Mono --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 03b22aed08..6692d97e43 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -465,7 +465,7 @@ namespace OpenSim.Region.Physics.OdePlugin else { IntPtr sGeomIsIn = d.GeomGetSpace(geom); - if (sGeomIsIn != null) + if (!(sGeomIsIn.Equals(null))) d.SpaceRemove(sGeomIsIn, geom); } @@ -490,7 +490,7 @@ namespace OpenSim.Region.Physics.OdePlugin else { IntPtr sGeomIsIn = d.GeomGetSpace(geom); - if (sGeomIsIn != null) + if (!(sGeomIsIn.Equals(null))) d.SpaceRemove(sGeomIsIn, geom); } }