aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-30 23:39:26 +0100
committerJustin Clark-Casey (justincc)2011-08-30 23:39:26 +0100
commit2acfff9f6d340984bbc51c4d18c2babe2e3cb6ca (patch)
tree325cca4e810ca79fbe75ccc23a82b5713b23adb5 /OpenSim/Region
parentminor: remove already processed avatar null check in Scene.RemoveClient() (diff)
downloadopensim-SC_OLD-2acfff9f6d340984bbc51c4d18c2babe2e3cb6ca.zip
opensim-SC_OLD-2acfff9f6d340984bbc51c4d18c2babe2e3cb6ca.tar.gz
opensim-SC_OLD-2acfff9f6d340984bbc51c4d18c2babe2e3cb6ca.tar.bz2
opensim-SC_OLD-2acfff9f6d340984bbc51c4d18c2babe2e3cb6ca.tar.xz
remove pointless ToArray() call in AttachmentsModule.SaveChangedAttachments()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index e2f6a9e..f4bc495 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -137,7 +137,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
137 public void SaveChangedAttachments(IScenePresence sp) 137 public void SaveChangedAttachments(IScenePresence sp)
138 { 138 {
139 // Need to copy this list because DetachToInventoryPrep mods it 139 // Need to copy this list because DetachToInventoryPrep mods it
140 List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(sp.Attachments.ToArray()); 140 List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(sp.Attachments);
141 141
142 foreach (SceneObjectGroup grp in attachments) 142 foreach (SceneObjectGroup grp in attachments)
143 { 143 {