Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
153 stars 7 forks source link

C_Container.GetContainerNumFreeSlots and GetContainerFreeSlots return wrong values in Classic for bag -1 #538

Open Cidan opened 3 months ago

Cidan commented 3 months ago

When calling C_Container.GetContainerNumFreeSlots on Classic Era, with a bag id of -1 (the main bank bag) while the bank is open, the number of free slots is always N+4, let N be the number of actual free slots.

As far as I can tell, it looks like the extra 4 slots being reported are due to retail bank bags being 28, and classic being 24. It seems this function is using 28 slots for it's max on Classic. The same issue happens with GetContainerFreeSlots -- it returns 4 slots that do not exist on Classic for bag -1.