aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-08-26 00:15:26 +0100
committerJustin Clark-Casey (justincc)2010-08-26 00:15:26 +0100
commit166ab59420f34e21fcd9493c1941d7cf43729ca6 (patch)
treecff9aa8dcc3ed855f07a9620c79fdf0587727d92 /OpenSim/Region/Framework/Scenes
parentImprove consistency of locking for SOG.m_parts in order to avoid race conditi... (diff)
downloadopensim-SC-166ab59420f34e21fcd9493c1941d7cf43729ca6.zip
opensim-SC-166ab59420f34e21fcd9493c1941d7cf43729ca6.tar.gz
opensim-SC-166ab59420f34e21fcd9493c1941d7cf43729ca6.tar.bz2
opensim-SC-166ab59420f34e21fcd9493c1941d7cf43729ca6.tar.xz
replace m_parts.Count linknum with 0 in CopyRootPart since m_parts.Count is always 0 (and any other number would cause an error anyway)
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 5ee8d73..fc5eeed 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1647,7 +1647,7 @@ namespace OpenSim.Region.Framework.Scenes
1647 /// <param name="cGroupID"></param> 1647 /// <param name="cGroupID"></param>
1648 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed) 1648 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
1649 { 1649 {
1650 SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed)); 1650 SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed));
1651 } 1651 }
1652 1652
1653 public void ScriptSetPhysicsStatus(bool UsePhysics) 1653 public void ScriptSetPhysicsStatus(bool UsePhysics)