prevent shit from happening while jumping in prof windows
Darthpred [07-26-16 - 06:27]
prevent shit from happening while jumping in prof windows
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