Clear game handler DBC caches on expansion switch

Add resetDbcCaches() to GameHandler to clear stale spell name, skill,
taxi, and talent caches when switching expansions. Called from
reloadExpansionData() so switching servers (e.g. WotLK to Turtle)
reloads DBC data instead of using stale entries from the previous
expansion.
This commit is contained in:
Kelsi 2026-02-14 19:27:35 -08:00
parent 7f9439d774
commit a96dc4ebcc
3 changed files with 29 additions and 0 deletions

View file

@ -800,6 +800,12 @@ public:
*/
void update(float deltaTime);
/**
* Reset DBC-backed caches so they reload from new expansion data.
* Called by Application when the expansion profile changes.
*/
void resetDbcCaches();
private:
void autoTargetAttacker(uint64_t attackerGuid);