summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-03-28 01:00:34 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-03-28 01:00:34 +0200
commita520c01c730b32f4dcdced79e8972376086d30a0 (patch)
treea30e24671119e3537a8b7800ce70e3c72c4e7e68 /indra/newview/llagent.cpp
parentd0f3186cb847dc7ba623255dda40252f82ea20ce (diff)
parent328329fceab6b18dd7dda6f7ce9a3d4788fd7c54 (diff)
Merge branch 'master' into DRTVWR-501-maint
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 0e43af91df..bd63240187 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -32,6 +32,7 @@
#include "pipeline.h"
#include "llagentaccess.h"
+#include "llagentbenefits.h"
#include "llagentcamera.h"
#include "llagentlistener.h"
#include "llagentwearables.h"
@@ -3003,7 +3004,7 @@ BOOL LLAgent::setUserGroupFlags(const LLUUID& group_id, BOOL accept_notices, BOO
BOOL LLAgent::canJoinGroups() const
{
- return (S32)mGroups.size() < gMaxAgentGroups;
+ return (S32)mGroups.size() < LLAgentBenefitsMgr::current().getGroupMembershipLimit();
}
LLQuaternion LLAgent::getHeadRotation()