mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* Fix Null comparison for Mono
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user