diff options
author | Diva Canto | 2016-05-16 21:57:19 -0700 |
---|---|---|
committer | Diva Canto | 2016-05-16 21:57:19 -0700 |
commit | 057d1b2a6e61e4a6d94fa16a7e8d5fc43c44789f (patch) | |
tree | b63a6d7c371a6fa0ca5bcadbaaa7ada34429d2df | |
parent | Mantis #7878 -- Landmarks were not being created in HGSuitcaseInventory (diff) | |
download | opensim-SC_OLD-057d1b2a6e61e4a6d94fa16a7e8d5fc43c44789f.zip opensim-SC_OLD-057d1b2a6e61e4a6d94fa16a7e8d5fc43c44789f.tar.gz opensim-SC_OLD-057d1b2a6e61e4a6d94fa16a7e8d5fc43c44789f.tar.bz2 opensim-SC_OLD-057d1b2a6e61e4a6d94fa16a7e8d5fc43c44789f.tar.xz |
Minor improvement over the previous commit -- make sure the code exists in the FolderType enum
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index c2002a3..ba8b1ee 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -187,7 +187,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
187 | InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId); | 187 | InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId); |
188 | InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f); | 188 | InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f); |
189 | 189 | ||
190 | if (folder == null) | 190 | if (folder == null && Enum.IsDefined(typeof(FolderType), (sbyte)invType)) |
191 | { | 191 | { |
192 | folder = m_Scene.InventoryService.GetFolderForType(remoteClient.AgentId, (FolderType)invType); | 192 | folder = m_Scene.InventoryService.GetFolderForType(remoteClient.AgentId, (FolderType)invType); |
193 | if (folder != null) | 193 | if (folder != null) |