Bagnon

Bagnon

126M Downloads

Error while moving items from reagent bag inventory to reagent bank tab

LarryGatlin opened this issue ยท 3 comments

commented

Which software were you running?

  • Addon version name: Bagnon 11.0.4
  • Client used: [e.g.] Retail

Have you read the changelog?
Mark if read.

Please describe the bug.
A clear and concise description of what the bug is.
3x bad argument #4 to '?' (Usage: C_Container.UseContainerItem(containerIndex, slotIndex [, unitToken, bankType, reagentBankOpen]))
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `UseContainerItem'
[string "@BagBrother/frames/containers/item.lua"]:38: in function <BagBrother/frames/containers/item.lua:21>

Locals:
(*temporary) = "bad argument #4 to '?' (Usage: C_Container.UseContainerItem(containerIndex, slotIndex [, unitToken, bankType, reagentBankOpen]))"
Please describe how to reproduce it.
Moving items from reagent bag to reagent tab in bank

commented

Added information, only happens when you double click to move items, if you drag them there is no error

commented

I got this when right-clicking an item to move it as well.

commented

I couldn't find any documentation on the requirements for that new 4th argument (bankType); I tried just using nil to see if I'd get a useful error message and it seems to work with nil. The item went into the reagent bag and no LUA error. YMMV.

I changed line 38 in BagBrother\frames\containers\item.lua to:
C.UseContainerItem(self:GetBag(), self:GetID(), nil, nil, true)