summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Alves <seth.alves@gmail.com>2025-05-09 09:54:47 -0700
committerSeth Alves <seth.alves@gmail.com>2025-05-19 10:01:17 -0700
commit28edf9e0c0309943dc406b824fc628a66d28f4ce (patch)
tree79eb87618dbb4eb12073fa45f6656b711a29e2fa
parentb2b021feadafbff8735d3ab46343efdebab59dca (diff)
reuse region variable instead of multiple calls to gAgent.getRegion()
-rw-r--r--indra/newview/llvoicewebrtc.cpp4
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);
}
}