Within your code at that GetItem spot, tt is a tooltip frame. When you register GetItemGCDInfos at the bottom, the UI is feeding your function the current tooltip frame being rendered, which is usually GameTooltip.
Replace
tt:GetItem()
with
TooltipUtil.GetDisplayedItem(tt)
|