aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Communications/Cache/InventoryFolder.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Framework/Communications/Cache/InventoryFolder.cs b/OpenSim/Framework/Communications/Cache/InventoryFolder.cs
index 6161c5a..fd029cd 100644
--- a/OpenSim/Framework/Communications/Cache/InventoryFolder.cs
+++ b/OpenSim/Framework/Communications/Cache/InventoryFolder.cs
@@ -60,14 +60,18 @@ namespace OpenSim.Framework.Communications.Cache
60 // Methods 60 // Methods
61 public InventoryFolderImpl CreateNewSubFolder(LLUUID folderID, string folderName, ushort type) 61 public InventoryFolderImpl CreateNewSubFolder(LLUUID folderID, string folderName, ushort type)
62 { 62 {
63 InventoryFolderImpl subFold = new InventoryFolderImpl(); 63 if (!SubFolders.ContainsKey(folderID))
64 subFold.name = folderName; 64 {
65 subFold.folderID = folderID; 65 InventoryFolderImpl subFold = new InventoryFolderImpl();
66 subFold.type = (short) type; 66 subFold.name = folderName;
67 subFold.parentID = this.folderID; 67 subFold.folderID = folderID;
68 subFold.agentID = agentID; 68 subFold.type = (short)type;
69 SubFolders.Add(subFold.folderID, subFold); 69 subFold.parentID = this.folderID;
70 return subFold; 70 subFold.agentID = agentID;
71 SubFolders.Add(subFold.folderID, subFold);
72 return subFold;
73 }
74 return null;
71 } 75 }
72 76
73 public InventoryItemBase HasItem(LLUUID itemID) 77 public InventoryItemBase HasItem(LLUUID itemID)