Skip to content
Snippets Groups Projects
Commit 0fbd016a authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix discord error

parent 8a9b4591
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,8 @@ void ALDiscordManager::updateActivity() ...@@ -228,7 +228,8 @@ void ALDiscordManager::updateActivity()
activity.GetAssets().SetSmallText(app_str.c_str()); activity.GetAssets().SetSmallText(app_str.c_str());
std::string regionId = region->getRegionID().asString(); std::string regionId = region->getRegionID().asString();
activity.GetParty().GetSize().SetCurrentSize(region->mMapAvatars.size()); S32 agents = llmax((size_t)1, region->mMapAvatars.size());
activity.GetParty().GetSize().SetCurrentSize(agents);
S32 max_agents = LLRegionInfoModel::instance().mAgentLimit; S32 max_agents = LLRegionInfoModel::instance().mAgentLimit;
if (max_agents > 0) if (max_agents > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment