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-09 09:54:47 -0700
commit4cff6997a1817eba8629def2bd9fddbfe4bf5626 (patch)
tree570bb9f6200fda8083078b8245f0cd16a46ea802
parentbe0fff812123b70f3a3ecb6b203b902651b4061e (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);
}
}