From 03009f44c2e165a2144d6e093b2f610d6b63ac38 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 21 Mar 2010 03:17:07 -0400 Subject: [PATCH] In GenerateTooltipContent(): If recipe_entry is nil, abort immediately. --- Frame.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index aab556e..817c3a0 100644 --- a/Frame.lua +++ b/Frame.lua @@ -600,9 +600,13 @@ do end function GenerateTooltipContent(owner, rIndex) + local recipe_entry = private.recipe_list[rIndex] + + if not recipe_entry then + return + end local spell_tip_anchor = addon.db.profile.spelltooltiplocation local acquire_tip_anchor = addon.db.profile.acquiretooltiplocation - local recipe_entry = private.recipe_list[rIndex] local spell_link = recipe_entry.spell_link local MainPanel = addon.Frame -- 1.7.9.5