Push to fix gold loot showing numbers

Wobin [05-09-14 - 10:24]
Push to fix gold loot showing numbers
Filename
Inventory.lua
diff --git a/Inventory.lua b/Inventory.lua
index 0ff6de1..83873ca 100644
--- a/Inventory.lua
+++ b/Inventory.lua
@@ -8,8 +8,6 @@ function SousChef.AddRankToSlot(row, funcs)
     local bagId = slot[funcs[2]]
     local slotIndex = funcs[3] and slot[funcs[3]] or nil

-    if not slot.name or slot.name == "" then return end
-
 	local rankIcon = SousChef.getIcon(row)

 	-- Allow for ingeniousclown's Inventory Grid View
@@ -25,7 +23,8 @@ function SousChef.AddRankToSlot(row, funcs)

 	rankIcon:SetHidden(true)

-	if not bagId then return end
+	-- Are we gold or soulgem slot? Stay hidden and go away
+	if not bagId or not slot.name or slot.name == "" then return end

 	local id = u.GetItemID(idFunc(bagId, slotIndex))
 	local texture = SousChef.Pantry[id]