Only try to grab an icon texture if the recipe has a crafted_item_id
James D. Callahan III [07-26-11 - 05:13]
Only try to grab an icon texture if the recipe has a crafted_item_id
diff --git a/Interface/List.lua b/Interface/List.lua
index d963052..1f537a1 100644
--- a/Interface/List.lua
+++ b/Interface/List.lua
@@ -1847,7 +1847,7 @@ do
acquire_tip:AddHeader()
acquire_tip:SetCell(1, 1, "|c"..select(4, _G.GetItemQualityColor(recipe.quality))..recipe.name, "CENTER", 2)
- local recipe_item_texture = _G.select(10, _G.GetItemInfo(recipe.crafted_item_id))
+ local recipe_item_texture = recipe.crafted_item_id and _G.select(10, _G.GetItemInfo(recipe.crafted_item_id))
if recipe_item_texture then
acquire_tip:AddHeader()