Skip to content

Commit

Permalink
Merge pull request #34177 from Fris0uman/fix_get_nam
Browse files Browse the repository at this point in the history
Add missing return to function
  • Loading branch information
ZhilkinSerg authored Sep 22, 2019
2 parents 2878906 + f34e902 commit bdf3f9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3953,8 +3953,11 @@ std::string get_stat_name( Character::stat Stat )
case Character::stat::DEXTERITY: return pgettext("dexterity stat", "DEX");
case Character::stat::INTELLIGENCE: return pgettext("intelligence stat", "INT");
case Character::stat::PERCEPTION: return pgettext("perception stat", "PER");

case Character::stat::DUMMY_STAT: return pgettext( "fake stat there's an error", "ERR" );
// *INDENT-ON*
default:
return pgettext( "fake stat there's an error", "ERR" );
break;

}
return pgettext( "fake stat there's an error", "ERR" );
}

0 comments on commit bdf3f9a

Please sign in to comment.