Vendor Price

Vendor Price

13M Downloads

Compat.lua error - 'GetMouseFocus' (a nil value)

konffen opened this issue ยท 1 comments

commented

New WoW Classic SoD patch 1.15.4 gives the following error in BugSack

559x VendorPrice/Compat.lua:56: attempt to call global 'GetMouseFocus' (a nil value)
[string "@VendorPrice/Compat.lua"]:56: in function <VendorPrice/Compat.lua:35>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `SetInboxItem'
[string "@Blizzard_UIPanels_Game/Classic/MailFrame.lua"]:316: in function <Blizzard_UIPanels_Game/Classic/MailFrame.lua:312>
[string "=[C]"]: in function `InboxFrameItem_OnEnter'
[string "*MailFrame.xml:148_OnEnter"]:1: in function <[string "*MailFrame.xml:148_OnEnter"]:1>

Locals:
tt = GameTooltip {
 hasMoney = 1
 comparing = false
 TopOverlay = Texture {
 }
 numMoneyFrames = 2
 StatusBar = GameTooltipStatusBar {
 }
 layoutType = "TooltipDefaultLayout"
 shoppingTooltips = <table> {
 }
 BottomOverlay = Texture {
 }
 updateTooltip = 0.098000
 NineSlice = Frame {
 }
 needsReset = true
}
(*temporary) = nil
(*temporary) = "attempt to call global 'GetMouseFocus' (a nil value)"
VP = <table> {
 isVanilla = true
 isCata = false
}
Auctioneer = <table> {
}

Similar error with ItemRack and GetMouseFocus too was fixed with the following:

-- by Mikinho - Fix for latest update for Classic Era/SoD v11504
local GetMouseFocus = GetMouseFocus
if not GetMouseFocus and GetMouseFoci then
    local GetMouseFoci = GetMouseFoci
          GetMouseFocus = function()
          return GetMouseFoci()[1]
      end
end
commented

Thanks, should be fixed in 1.8.1