* Fix Null comparison for Mono

This commit is contained in:
Teravus Ovares
2007-11-17 21:00:35 +00:00
parent 8a57dd207f
commit 54df1a57d7

View File

@@ -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);
}
}