From d8a43b0d2de1b3a101b7f86804d0593883ce24fa Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 20 May 2011 00:24:56 +0200 Subject: [PATCH] Fix issues with items not having a value --- Monomyth.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Monomyth.lua b/Monomyth.lua index d234d8a..60e7952 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -87,7 +87,9 @@ addon:Register('QUEST_COMPLETE', function() end end - _G['QuestInfoItem' .. bestIndex]:Click() + if(bestIndex) then + _G['QuestInfoItem' .. bestIndex]:Click() + end end end) -- 1.7.9.5