questitem: abort when no valid item was given

This commit is contained in:
shagu
2020-07-10 17:08:12 +02:00
parent 0751ab31cd
commit cd76ac0b72
+3
View File
@@ -3,6 +3,9 @@ pfUI:RegisterModule("questitem", function ()
local itemcache = {}
local function AddTooltip(frame, item)
-- abort when no item was given
if not item then return end
-- abort if questitem is disabled
if C.tooltip.questitem.showquest ~= "1" then return end