From f34e902982ed31c4f9f2ce7b9f94bfdfb9feacf8 Mon Sep 17 00:00:00 2001 From: Fris0uman Date: Sun, 22 Sep 2019 13:54:04 +0200 Subject: [PATCH] return --- src/character.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/character.cpp b/src/character.cpp index 3799971e70385..1db509dbf949e 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -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" ); }