mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
game: fix talent state not resetting across login sessions
Replace static-local firstSpecReceived with talentsInitialized_ member variable, reset in handleLoginVerifyWorld alongside other per-session state. Also clear learnedTalents_, unspentTalentPoints_, and activeTalentSpec_ at world entry so reconnects and character switches start from a clean talent state instead of carrying over stale data.
This commit is contained in:
parent
2a9d26e1ea
commit
03c4d59592
2 changed files with 13 additions and 4 deletions
|
|
@ -1841,6 +1841,7 @@ private:
|
|||
std::unordered_map<uint32_t, TalentEntry> talentCache_; // talentId -> entry
|
||||
std::unordered_map<uint32_t, TalentTabEntry> talentTabCache_; // tabId -> entry
|
||||
bool talentDbcLoaded_ = false;
|
||||
bool talentsInitialized_ = false; // Reset on world entry; guards first-spec selection
|
||||
|
||||
// ---- Area trigger detection ----
|
||||
struct AreaTriggerEntry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue