Skip to content

Commit

Permalink
explicitly sort spec-based RPPM for spell info output
Browse files Browse the repository at this point in the history
  • Loading branch information
gastank committed Jun 30, 2023
1 parent f353fbe commit 35125b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/dbc/sc_spell_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,9 @@ std::string spell_info::to_str( const dbc_t& dbc, const spell_data_t* spell, int

std::vector<rppm_modifier_t> modifiers( mod_span.begin(), mod_span.end() );
range::sort( modifiers, []( rppm_modifier_t a, rppm_modifier_t b ) {
if ( a.modifier_type == RPPM_MODIFIER_SPEC && b.modifier_type == RPPM_MODIFIER_SPEC )
return a.type < b.type;

return a.modifier_type < b.modifier_type;
} );

Expand Down

0 comments on commit 35125b5

Please sign in to comment.