Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
osuphobia committed Jun 8, 2024
1 parent ce5bb7f commit a3aa368
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/magic_enchantment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,10 @@ void enchant_cache::serialize( JsonOut &jsout ) const
jsout.member( "prof_boost" );
jsout.start_array();
for( const proficiency_category &prof_cat : proficiency_category::get_all() ) {
proficiency_category_id prof_cat_id;
jsout.start_object();
jsout.member( "value", prof_cat_id );
if( get_prof_boost_multiply( prof_cat_id ) != 0 ) {
jsout.member( "multiply", get_prof_boost_multiply( prof_cat_id ) );
jsout.member( "value", prof_cat.id );
if( get_prof_boost_multiply( prof_cat.id ) != 0 ) {
jsout.member( "multiply", get_prof_boost_multiply( prof_cat.id ) );
}
jsout.end_object();
}
Expand Down

0 comments on commit a3aa368

Please sign in to comment.