Skip to content

Commit

Permalink
use is_null instead of comparing against "none".
Browse files Browse the repository at this point in the history
Co-Authored-By: BevapDin <tho_ki@gmx.de>
  • Loading branch information
ishtatann and BevapDin authored Dec 15, 2019
1 parent 3b9076d commit bdccd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ std::string recipe::required_skills_string( const Character *c, bool include_pri
std::string recipe::required_all_skills_string() const
{
// There is no primary skill used, we can just use the required_skills directly.
if( skill_used == skill_id( "none" ) ) {
if( skill_used.is_null() ) {
return required_skills_string( required_skills.begin(), required_skills.end() );
}

Expand Down

0 comments on commit bdccd52

Please sign in to comment.