From b12edbf75237dd2832ecb6f953076f67e0e9fd03 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 26 Jul 2016 09:27:57 +0300 Subject: [PATCH] prevent shit from happening while jumping in prof windows --- ElvUI_SLE/modules/professions/enchant.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ElvUI_SLE/modules/professions/enchant.lua b/ElvUI_SLE/modules/professions/enchant.lua index 876c8d9..92c8566 100644 --- a/ElvUI_SLE/modules/professions/enchant.lua +++ b/ElvUI_SLE/modules/professions/enchant.lua @@ -72,6 +72,7 @@ function Pr:EnchantButton() if CURRENT_TRADESKILL ~= EnchName then _G["SLE_EnchScrollButton"]:Hide() return end local recipeInfo = C_TradeSkillUI.GetRecipeInfo(frame.selectedRecipeID) + if not recipeInfo then return end if C_TradeSkillUI.IsTradeSkillGuild() or C_TradeSkillUI.IsTradeSkillLinked() then _G["SLE_EnchScrollButton"]:Hide() elseif recipeInfo.alternateVerb then -- 1.7.9.5