View Single Post
02/10/18, 10:37 AM   #1
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
[notabug] GetItemTotalCount returns 0 for BAG_VIRTUAL

Lua Code:
  1. local itemCount
  2.  
  3. _, _, itemCount = GetItemTotalCount(BAG_VIRTUAL, slotIndex)
  4. -- itemCount is now 0
  5.  
  6. _, itemCount = GetItemInfo(BAG_VIRTUAL, slotIndex)
  7. -- itemCount is now valid

Last edited by manavortex : 02/12/18 at 03:41 PM. Reason: My brain is fucked up