From 02d94280a59babbc001ba696ad4ca19f99ce5232 Mon Sep 17 00:00:00 2001
From: XenHat <me@xenh.at>
Date: Thu, 8 Aug 2024 17:12:24 -0400
Subject: [PATCH] Fix default Max Maturity value type

Since this is an U32, I think it should be better to default it to an integer instead of a boolean.
I have set it to 13, which is the value for SIM_ACCESS_PG.

Perhaps should we change it to U8 if the settings system supports it to avoid needless typecasts?
---
 indra/newview/aldiscordmanager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/aldiscordmanager.cpp b/indra/newview/aldiscordmanager.cpp
index f2aef36099d..1cb2b871c1a 100644
--- a/indra/newview/aldiscordmanager.cpp
+++ b/indra/newview/aldiscordmanager.cpp
@@ -185,7 +185,7 @@ void ALDiscordManager::updateActivity()
     activity.SetType(discord::ActivityType::Playing);
 
     static LLCachedControl<bool> discord_shared_region(gSavedPerAccountSettings, "ALDiscordShareLocationRegion", true);
-    static LLCachedControl<U32> discord_shared_region_maturity(gSavedPerAccountSettings, "ALDiscordShareRegionMaxMaturity", true);
+    static LLCachedControl<U32> discord_shared_region_maturity(gSavedPerAccountSettings, "ALDiscordShareRegionMaxMaturity", 13);
     std::string region_name;
     if (RlvActions::canShowLocation() && discord_shared_region && region->getSimAccess() <= discord_shared_region_maturity)
     {
-- 
GitLab