Quantcast

Fix issues with items not having a value

Adrian L Lange [05-19-11 - 22:24]
Fix issues with items not having a value
Filename
Monomyth.lua
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)