View Single Post
06/04/16, 05:12 AM   #6
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by QuadroTony View Post
and how to fix?
Lua Code:
  1. function FilterIt.GetSlotData(_iBagId, _iSlotId)
  2.     local bIsBagSlotValid = false
  3.  
  4.     if (type(_iBagId) == "number") and(type(_iSlotId) == "number") then
  5.         bIsBagSlotValid = _iBagId ~= BAG_BUYBACK
  6.     end
  7.  
  8.     local slotData = nil
  9.     if bIsBagSlotValid then
  10.         slotData = SHARED_INVENTORY:GenerateSingleSlotData(_iBagId, _iSlotId)
  11.     end
  12.     return slotData or { stackCount = 0 }
  13. end
without much testing, but works.
  Reply With Quote