View Single Post
05-16-16, 07:53 AM   #51
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
Originally Posted by Rainrider View Post
There is one case which is somewhat inconsistent and that is LE_ITEM_CLASS_CONSUMABLE.
GetItemClassInfo(LE_ITEM_CLASS_CONSUMABLE) returns nil, but the 6th return of GetItemInfo for consumable items is "" (an empty string).
It's a bug. Theirs DB2 lookup code fails looking for 0 index (LE_ITEM_CLASS_CONSUMABLE is 0). I doubt it will ever be fixed... Also GetItemSubClassInfo works for consumable (the reason for this is that it enumerates all DB2 rows instead of using lookup by id).