diff options
-rw-r--r-- | indra/newview/llparticipantlist.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llparticipantlist.cpp b/indra/newview/llparticipantlist.cpp index 1986a98fb7..b787699a66 100644 --- a/indra/newview/llparticipantlist.cpp +++ b/indra/newview/llparticipantlist.cpp @@ -491,10 +491,12 @@ void LLParticipantList::LLParticipantListMenu::toggleMuteVoice(const LLSD& userd bool LLParticipantList::LLParticipantListMenu::isGroupModerator() { // Agent is in Group Call - bool is_in_group = gAgent.isInGroup(mParent.mSpeakerMgr->getSessionID()); - // Agent is Moderator - bool is_moderator = mParent.mSpeakerMgr->findSpeaker(gAgentID)->mIsModerator; - return is_in_group && is_moderator; + if(gAgent.isInGroup(mParent.mSpeakerMgr->getSessionID())) + { + // Agent is Moderator + return mParent.mSpeakerMgr->findSpeaker(gAgentID)->mIsModerator; + } + return false; } bool LLParticipantList::LLParticipantListMenu::isMuted(const LLUUID& avatar_id) |