Originally Posted by QuadroTony
and how to fix?
|
Lua Code:
function FilterIt.GetSlotData(_iBagId, _iSlotId)
local bIsBagSlotValid = false
if (type(_iBagId) == "number") and(type(_iSlotId) == "number") then
bIsBagSlotValid = _iBagId ~= BAG_BUYBACK
end
local slotData = nil
if bIsBagSlotValid then
slotData = SHARED_INVENTORY:GenerateSingleSlotData(_iBagId, _iSlotId)
end
return slotData or { stackCount = 0 }
end
without much testing, but works.