From 0be9402e8b7855580839bfb1cdb4ebd637a1cf5b Mon Sep 17 00:00:00 2001 From: ZhilkinSerg Date: Tue, 3 Dec 2019 17:40:49 +0300 Subject: [PATCH] Apply suggestions from code review --- src/skill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/skill.cpp b/src/skill.cpp index 29b5b1487fe27..f49913209838d 100644 --- a/src/skill.cpp +++ b/src/skill.cpp @@ -100,7 +100,7 @@ void Skill::load_skill( JsonObject &jsobj ) JsonArray ja = jsobj.get_array( "companion_skill_practice" ); while( ja.has_more() ) { JsonObject jo = ja.next_object(); - companion_skill_practice.emplace( jo.get_string( "companion_skill" ), jo.get_int( "weight" ) ); + companion_skill_practice.emplace( jo.get_string( "skill" ), jo.get_int( "weight" ) ); } skill_displayType_id display_type = skill_displayType_id( jsobj.get_string( "display_category" ) ); const Skill sk( ident, name, desc, jsobj.get_tags( "tags" ), display_type,