Skip to content

Commit

Permalink
[Player] rebuild talent hash if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
gastank committed Aug 27, 2024
1 parent 825fb2b commit 16e5307
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine/player/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2942,6 +2942,11 @@ void player_t::init_talents()
player_traits.emplace_back( talent_tree::SELECTION, trait.id_trait_node_entry, 1 );
}

if ( talents_str.empty() || !class_talents_str.empty() || !spec_talents_str.empty() || !hero_talents_str.empty() )
{
talents_str = generate_traits_hash( this );
}

// Generate talent effect overrides based on parsed trait information
for ( const auto& player_trait : player_traits )
{
Expand Down

0 comments on commit 16e5307

Please sign in to comment.