diff options
author | Teravus Ovares | 2007-11-17 21:00:35 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-17 21:00:35 +0000 |
commit | 54df1a57d73aad43dfcbc7f298830b548e37a9af (patch) | |
tree | 18c1f399f5f7473f9fb0a0bb36b921bc294bcbb9 | |
parent | * Fixed space related SimCrasher ODE error when a prim disables itself becaus... (diff) | |
download | opensim-SC_OLD-54df1a57d73aad43dfcbc7f298830b548e37a9af.zip opensim-SC_OLD-54df1a57d73aad43dfcbc7f298830b548e37a9af.tar.gz opensim-SC_OLD-54df1a57d73aad43dfcbc7f298830b548e37a9af.tar.bz2 opensim-SC_OLD-54df1a57d73aad43dfcbc7f298830b548e37a9af.tar.xz |
* Fix Null comparison for Mono
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 4 |
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 | } |