You set itemEquipLoc, itemTexture and itemSellPrice are set globaly
Closed this issue · 2 comments
fuba82 commented
hi there,
in your function:
local function FilterJunkItems(bagIndex, slotIndex)
you set:
itemEquipLoc, itemTexture, itemSellPrice = GetItemInfo(itemLink);
with this you set itemEquipLoc, itemTexture and itemSellPrice to global namespece.
if you set this values localy this will prevent some errors.
just change it to:
local itemEquipLoc, itemTexture, itemSellPrice = GetItemInfo(itemLink);
greeting, q3fuba
Sonaza commented
Actually it isn't, on the previous line there is a comma and I only just broke the long list on two lines to make it easier to read.
fuba82 commented
ah damn!
you'r right i see...
sorry then :/