Fix for client freeze in OpenSim getting picks limit

master
Hecklezz 2025-03-23 17:58:58 +10:00
parent b47d3c3ef5
commit 653a9b4df7
1 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,8 @@
#include "llviewerregion.h"
// </FS:Ansariel>
constexpr S32 MAX_OPENSIM_PICKS = S32_MAX; // <FS/> [FIRE-35276] Fix for client freeze in OpenSim getting picks limit
LLAgentBenefits::LLAgentBenefits():
m_initalized(false),
m_animated_object_limit(-1),
@ -213,7 +215,7 @@ S32 LLAgentBenefits::getPicksLimit() const
{
// <FS:Ansariel> OpenSim legacy economy
//return m_picks_limit;
return LLGridManager::instance().isInSecondLife() ? m_picks_limit : LLAgentPicksInfo::instance().getMaxNumberOfPicks();
return LLGridManager::instance().isInSecondLife() ? m_picks_limit : MAX_OPENSIM_PICKS;
// </FS:Ansariel>
}