diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 3adafc1..029e0d7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3416,7 +3416,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3416 | 3416 | ||
3417 | public void Close() | 3417 | public void Close() |
3418 | { | 3418 | { |
3419 | if (!IsChildAgent) | 3419 | if (!IsChildAgent && m_scene.AttachmentsModule != null) |
3420 | m_scene.AttachmentsModule.DeleteAttachmentsFromScene(this, false); | 3420 | m_scene.AttachmentsModule.DeleteAttachmentsFromScene(this, false); |
3421 | 3421 | ||
3422 | // Clear known regions | 3422 | // Clear known regions |