diff options
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs index 06c5b89..0601ece 100644 --- a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs +++ b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs | |||
@@ -495,9 +495,13 @@ namespace OpenSim.Services.HypergridService | |||
495 | 495 | ||
496 | private XInventoryFolder GetCurrentOutfitXFolder(UUID userID) | 496 | private XInventoryFolder GetCurrentOutfitXFolder(UUID userID) |
497 | { | 497 | { |
498 | XInventoryFolder root = GetRootXFolder(userID); | ||
499 | if (root == null) | ||
500 | return null; | ||
501 | |||
498 | XInventoryFolder[] folders = m_Database.GetFolders( | 502 | XInventoryFolder[] folders = m_Database.GetFolders( |
499 | new string[] { "agentID", "type" }, | 503 | new string[] { "agentID", "type", "parentFolderID" }, |
500 | new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString() }); | 504 | new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString(), root.folderID.ToString() }); |
501 | 505 | ||
502 | if (folders.Length == 0) | 506 | if (folders.Length == 0) |
503 | return null; | 507 | return null; |