aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorMW2007-12-01 20:57:14 +0000
committerMW2007-12-01 20:57:14 +0000
commit4dee53c7fb476b0503b8443b2dba1eb868a56815 (patch)
treed78634405ab06746ec7b99b57086268ab015bf81 /OpenSim/Framework/Communications
parentadded the mysql table files for inventory. Thanks nebadon. (diff)
downloadopensim-SC_OLD-4dee53c7fb476b0503b8443b2dba1eb868a56815.zip
opensim-SC_OLD-4dee53c7fb476b0503b8443b2dba1eb868a56815.tar.gz
opensim-SC_OLD-4dee53c7fb476b0503b8443b2dba1eb868a56815.tar.bz2
opensim-SC_OLD-4dee53c7fb476b0503b8443b2dba1eb868a56815.tar.xz
Attempt to fix mantis issue # 73
Diffstat (limited to 'OpenSim/Framework/Communications')
-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)