Quantcast

Clear out the saved data now that we use it for more than one thing

Adrian L Lange [04-27-13 - 19:28]
Clear out the saved data now that we use it for more than one thing
Filename
HabeebIt.lua
diff --git a/HabeebIt.lua b/HabeebIt.lua
index a23636a..ae6ca04 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -228,10 +228,13 @@ Frame:SetScript('OnEvent', function(self, event, ...)
 				print('|cffff8080HabeebIt:|r Found an unused spell [' .. spellID .. ']. Please report this!')
 			end
 		end
+	elseif(event == 'SPELL_CONFIRMATION_TIMEOUT') then
+		currentEncounterID = nil
 	elseif(event == 'EJ_LOOT_DATA_RECIEVED' and currentEncounterID) then
 		PopulateList()
 	elseif(event == 'PLAYER_LOGIN') then
 		self:RegisterEvent('SPELL_CONFIRMATION_PROMPT')
+		self:RegisterEvent('SPELL_CONFIRMATION_TIMEOUT')
 		self:RegisterEvent('EJ_LOOT_DATA_RECIEVED')

 		self:SetPoint('BOTTOMLEFT', BonusRollFrame, 'BOTTOMRIGHT')