mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
Whitelist and type validation for fallbacks
This commit is contained in:
parent
e35bf97603
commit
be45b8199e
5 changed files with 291 additions and 17 deletions
|
@ -141,7 +141,8 @@ namespace MWGui
|
|||
mLevelText->setCaptionWithReplacing("#{sLevelUpMenu1} " + MyGUI::utility::toString(level));
|
||||
|
||||
std::string_view levelupdescription;
|
||||
levelupdescription = Fallback::Map::getString("Level_Up_Level" + MyGUI::utility::toString(level));
|
||||
if (level <= 20)
|
||||
levelupdescription = Fallback::Map::getString("Level_Up_Level" + MyGUI::utility::toString(level));
|
||||
|
||||
if (levelupdescription.empty())
|
||||
levelupdescription = Fallback::Map::getString("Level_Up_Default");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue