Talk:API GetSpellBookItemName

From Warcraft Wiki
Jump to navigation Jump to search

GetSpellBookItemName(): Invalid spell slot <in C code>

This function appears to critically fail when the first argument is outside of range. Previously, it would fail silently and allow the code to continue running. How does one get the total number of spells so as to not cause an error? —EGingellTC Treader of Cenarion Circle 07:23, 30 September 2012 (UTC)

I found something in another addon that had the same problem that was fixed by using GetNumSpellTabs and GetSpellTabInfo. —EGingellTC Treader of Cenarion Circle 07:43, 30 September 2012 (UTC)