OSDN Git Service

Resolve inv. links when checking for existance of a body part during replace outfit
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 9 Mar 2013 17:54:29 +0000 (18:54 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 9 Mar 2013 17:54:29 +0000 (18:54 +0100)
Radegast/GUI/Consoles/Inventory/CurrentOutfitFolder.cs

index c68ba51..84db2ce 100644 (file)
@@ -510,13 +510,15 @@ namespace Radegast
                     WearableType linkType = ((InventoryWearable)RealInventoryItem(item)).WearableType;
                     bool hasBodyPart = false;
 
-                    foreach (var newItem in newOutfit)
+                    foreach (var newItemTmp in newOutfit)
                     {
+                        var newItem = RealInventoryItem(newItemTmp);
                         if (IsBodyPart(newItem))
                         {
                             if (((InventoryWearable)newItem).WearableType == linkType)
                             {
                                 hasBodyPart = true;
+                                break;
                             }
                         }
                     }