Fix spellbook tabs race condition with DBC lazy loading

lookupSpellName() (called by action bar tooltips) was triggering
loadSpellDBC() early, setting dbcLoadAttempted=true before the
spellbook opened. This caused loadSkillLineDBCs() to be skipped,
so all spells were categorized into "General". Fixed by checking
each DBC's own loaded flag independently and re-categorizing when
skill line data becomes available.
This commit is contained in:
Kelsi 2026-02-26 01:21:51 -08:00
parent c919477e74
commit c2b271df6f
2 changed files with 9 additions and 2 deletions

View file

@ -71,6 +71,7 @@ private:
// Categorized spell tabs
std::vector<SpellTabInfo> spellTabs;
size_t lastKnownSpellCount = 0;
bool categorizedWithSkillLines = false;
// Search filter
char searchFilter_[128] = "";