Lua error with locking items
DJSchaffner opened this issue ยท 0 comments
Addon Version
v0.1.7
World of Warcraft Version
Classic Era (And SoD/Hardcore)
Describe the bug
I found this Lua error in my BugSack. Apparently something with locking items and the respective function not being called properly
1x BetterBags/frames/item.lua:190: bad argument #1 to 'UnlockItem' (Usage: C_Item.UnlockItem(itemLocation))
[string "=[C]"]: in function `UnlockItem'
[string "@BetterBags/frames/item.lua"]:190: in function `Unlock'
[string "@BetterBags/frames/item.lua"]:170: in function `SetLock'
[string "@BetterBags/frames/classic/item.lua"]:104: in function `SetItem'
[string "@BetterBags/views/gridview.lua"]:98: in function `Render'
[string "@BetterBags/frames/bag.lua"]:214: in function `Draw'
[string "@BetterBags/core/init.lua"]:137: in function `cb'
[string "@BetterBags/core/events.lua"]:45: in function <BetterBags/core/events.lua:40>
[string "=[C]"]: ?
[string "@ElvUI_Libraries/Core/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ies/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@ElvUI_Libraries/Core/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `SendMessage'
[string "@BetterBags/core/events.lua"]:148: in function <BetterBags/core/events.lua:147>
Locals:
(*temporary) = <table> {
Clear = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:21
IsEquipmentSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:48
IsEqualToBagAndSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:60
SetBagAndSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:27
IsBagAndSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:52
SetEquipmentSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:38
HasAnyLocation = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:56
slotIndex = 10
GetEquipmentSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:44
IsEqualToEquipmentSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:68
bagID = 2
GetBagAndSlot = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:34
IsEqualTo = <function> defined @FrameXML/ObjectAPI/ItemLocation.lua:76
}
Steps to reproduce
Unfortunately I can't provide steps to reproduce it, but I will update if something comes up.
It's the first time the error occured and I can't recall doing anything specific. Perhaps the log helps