diff options
author | Seth Alves <seth.alves@gmail.com> | 2025-05-09 09:54:47 -0700 |
---|---|---|
committer | Seth Alves <seth.alves@gmail.com> | 2025-05-19 10:01:17 -0700 |
commit | 28edf9e0c0309943dc406b824fc628a66d28f4ce (patch) | |
tree | 79eb87618dbb4eb12073fa45f6656b711a29e2fa | |
parent | b2b021feadafbff8735d3ab46343efdebab59dca (diff) |
reuse region variable instead of multiple calls to gAgent.getRegion()
-rw-r--r-- | indra/newview/llvoicewebrtc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index cda02b7e8a..9835a69e4e 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -985,8 +985,8 @@ void LLWebRTCVoiceClient::updatePosition(void) LLWebRTCVoiceClient::participantStatePtr_t participant = findParticipantByID("Estate", gAgentID); if(participant) { - if (participant->mRegion != gAgent.getRegion()->getRegionID()) { - participant->mRegion = gAgent.getRegion()->getRegionID(); + if (participant->mRegion != region->getRegionID()) { + participant->mRegion = region->getRegionID(); setMuteMic(mMuteMic); } } |