* Fix Null comparison for Mono

afrisby
Teravus Ovares 2007-11-17 21:00:35 +00:00
parent 8a57dd207f
commit 54df1a57d7
1 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ namespace OpenSim.Region.Physics.OdePlugin
else else
{ {
IntPtr sGeomIsIn = d.GeomGetSpace(geom); IntPtr sGeomIsIn = d.GeomGetSpace(geom);
if (sGeomIsIn != null) if (!(sGeomIsIn.Equals(null)))
d.SpaceRemove(sGeomIsIn, geom); d.SpaceRemove(sGeomIsIn, geom);
} }
@ -490,7 +490,7 @@ namespace OpenSim.Region.Physics.OdePlugin
else else
{ {
IntPtr sGeomIsIn = d.GeomGetSpace(geom); IntPtr sGeomIsIn = d.GeomGetSpace(geom);
if (sGeomIsIn != null) if (!(sGeomIsIn.Equals(null)))
d.SpaceRemove(sGeomIsIn, geom); d.SpaceRemove(sGeomIsIn, geom);
} }
} }