aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/CachedUserInfo.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/CachedUserInfo.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
index 1cbffc7..b98cec7 100644
--- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
+++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
@@ -485,10 +485,10 @@ namespace OpenSim.Framework.Communications.Cache
485 { 485 {
486 if (HasInventory) 486 if (HasInventory)
487 { 487 {
488 if(item.Folder == LLUUID.Zero) 488 if (item.Folder == LLUUID.Zero)
489 { 489 {
490 InventoryFolderImpl f=FindFolderForType(item.AssetType); 490 InventoryFolderImpl f=FindFolderForType(item.AssetType);
491 if(f != null) 491 if (f != null)
492 item.Folder=f.ID; 492 item.Folder=f.ID;
493 else 493 else
494 item.Folder=RootFolder.ID; 494 item.Folder=RootFolder.ID;
@@ -617,14 +617,14 @@ namespace OpenSim.Framework.Communications.Cache
617 617
618 private InventoryFolderImpl FindFolderForType(int type) 618 private InventoryFolderImpl FindFolderForType(int type)
619 { 619 {
620 if(RootFolder == null) 620 if (RootFolder == null)
621 return null; 621 return null;
622 622
623 lock(RootFolder.SubFolders) 623 lock (RootFolder.SubFolders)
624 { 624 {
625 foreach (InventoryFolderImpl f in RootFolder.SubFolders.Values) 625 foreach (InventoryFolderImpl f in RootFolder.SubFolders.Values)
626 { 626 {
627 if(f.Type == type) 627 if (f.Type == type)
628 return f; 628 return f;
629 } 629 }
630 } 630 }