diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 4f00843..c51f235 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -789,6 +789,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
789 | public void DetachToGround() | 789 | public void DetachToGround() |
790 | { | 790 | { |
791 | ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar); | 791 | ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar); |
792 | if (avatar == null) | ||
793 | return; | ||
794 | |||
795 | avatar.RemoveAttachment(this); | ||
796 | |||
792 | Vector3 detachedpos = new Vector3(127f,127f,127f); | 797 | Vector3 detachedpos = new Vector3(127f,127f,127f); |
793 | if (avatar == null) | 798 | if (avatar == null) |
794 | return; | 799 | return; |