remove pointless ToArray() call in AttachmentsModule.SaveChangedAttachments()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-08-30 23:39:26 +01:00
parent 1809aaf74c
commit 2acfff9f6d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
public void SaveChangedAttachments(IScenePresence sp)
{
// Need to copy this list because DetachToInventoryPrep mods it
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(sp.Attachments.ToArray());
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(sp.Attachments);
foreach (SceneObjectGroup grp in attachments)
{