DDCorkum / CTMod

CTMod
https://www.curseforge.com/wow/addons/ctmod
1 stars 4 forks source link

Lua Error Alt Left Click to add item to Send Mail window #156

Closed Xdembe closed 1 year ago

Xdembe commented 1 year ago

Lua Error CT_MailMod/CT_MailMod_SendMail.lua:34: attempt to call global 'PickupContainerItem' (a nil value) [string "@CT_MailMod/CT_MailMod_SendMail.lua"]:34: in function func' [string "@CT_Core/CT_Core_Other.lua"]:1478: in function <CT_Core/CT_Core_Other.lua:1475> [string "=[C]"]: in functionContainerFrameItemButton_OnModifiedClick'

Xdembe commented 1 year ago

change line 34 with

C_Container.PickupContainerItem(bag, item);

probably fix it

DDCorkum commented 1 year ago

Thanks.

For classic compatibility:

(PickupContainerItem or C_Container.PickupContainerItem)(bag, item)