summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actormanager.cpp3
-rw-r--r--src/being/being.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 510202435..155d844ce 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1849,7 +1849,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
void ActorManager::updateBadges()
{
- const int showBadges = config.getIntValue("showBadges");
+ const uint8_t showBadges = static_cast<uint8_t>(
+ config.getIntValue("showBadges"));
Being::mShowBadges = showBadges;
for_actors
{
diff --git a/src/being/being.cpp b/src/being/being.cpp
index a923d107e..27cebc99c 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2483,7 +2483,7 @@ void Being::reReadConfig()
mHideErased = config.getBoolValue("hideErased");
mMoveNames = fromBool(config.getBoolValue("moveNames"), Move);
mUseDiagonal = config.getBoolValue("useDiagonalSpeed");
- mShowBadges = config.getIntValue("showBadges");
+ mShowBadges = static_cast<uint8_t>(config.getIntValue("showBadges"));
mUpdateConfigTime = cur_time;
}