Vendorer

Vendorer

26.7k Downloads

You set itemEquipLoc, itemTexture and itemSellPrice are set globaly

fuba82 opened this issue ยท 2 comments

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

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.

commented

ah damn!
you'r right i see...

sorry then :/