diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index 144d762..adc8d98 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |||
@@ -4059,8 +4059,11 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
4059 | { | 4059 | { |
4060 | _worldInitialized = false; | 4060 | _worldInitialized = false; |
4061 | 4061 | ||
4062 | m_rayCastManager.Dispose(); | 4062 | if (m_rayCastManager != null) |
4063 | m_rayCastManager = null; | 4063 | { |
4064 | m_rayCastManager.Dispose(); | ||
4065 | m_rayCastManager = null; | ||
4066 | } | ||
4064 | 4067 | ||
4065 | lock (OdeLock) | 4068 | lock (OdeLock) |
4066 | { | 4069 | { |