From 2917a2db9a7df054a12e8f8321043c57a64d948d Mon Sep 17 00:00:00 2001 From: xanthics <119889093+Xan-Asc@users.noreply.github.com> Date: Sun, 30 Apr 2023 01:25:28 -0700 Subject: [PATCH] Bugfix: missed a variable cleanup --- TradeSkillMaster_Crafting/Modules/CraftingGUI.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua b/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua index 3b89f94..0ccc0b2 100644 --- a/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua +++ b/TradeSkillMaster_Crafting/Modules/CraftingGUI.lua @@ -275,6 +275,7 @@ function GUI:EventHandler(event, ...) --GUI:UpdateQueue() end end + -- no longer casting a spell so discard spellID TSM.currentspell = nil -- TSMAPI:CreateTimeDelay("craftingQueueUpdateThrottle", 0.2, GUI.UpdateQueue) elseif event == "UNIT_SPELLCAST_INTERRUPTED" or event == "UNIT_SPELLCAST_FAILED" or event == "UNIT_SPELLCAST_FAILED_QUIET" then @@ -289,7 +290,9 @@ function GUI:EventHandler(event, ...) GUI.isCrafting.quantity = 0 TSMAPI:CreateTimeDelay("craftingQueueUpdateThrottle", 0.2, GUI.UpdateQueue) end - end + -- no longer casting a spell so discard spellID + TSM.currentspell = nil + end end end