mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 07:00:00 +00:00
libtooltip: ignore invalid calls to bagslots
This commit is contained in:
@@ -51,6 +51,11 @@ pfUI.api.libtooltip = libtooltip
|
||||
-- setup item hooks
|
||||
local pfHookSetBagItem = GameTooltip.SetBagItem
|
||||
function GameTooltip.SetBagItem(self, container, slot)
|
||||
-- skip special/invalid calls to the function
|
||||
if not container or not slot then
|
||||
return pfHookSetBagItem(self, container, slot)
|
||||
end
|
||||
|
||||
libtooltip.itemLink = GetContainerItemLink(container, slot)
|
||||
_, libtooltip.itemCount = GetContainerItemInfo(container, slot)
|
||||
return pfHookSetBagItem(self, container, slot)
|
||||
|
||||
Reference in New Issue
Block a user