From a3aa36858eafb2bb2171cae9c7e81399588d1e91 Mon Sep 17 00:00:00 2001 From: osuphobia Date: Sat, 8 Jun 2024 21:47:01 +0800 Subject: [PATCH] fix --- src/magic_enchantment.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/magic_enchantment.cpp b/src/magic_enchantment.cpp index 5af191d333a97..3228a70d593f5 100644 --- a/src/magic_enchantment.cpp +++ b/src/magic_enchantment.cpp @@ -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(); }