Skip to content

Commit 28edf9e

Browse files
committed
reuse region variable instead of multiple calls to gAgent.getRegion()
1 parent b2b021f commit 28edf9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indra/newview/llvoicewebrtc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,8 @@ void LLWebRTCVoiceClient::updatePosition(void)
985985
LLWebRTCVoiceClient::participantStatePtr_t participant = findParticipantByID("Estate", gAgentID);
986986
if(participant)
987987
{
988-
if (participant->mRegion != gAgent.getRegion()->getRegionID()) {
989-
participant->mRegion = gAgent.getRegion()->getRegionID();
988+
if (participant->mRegion != region->getRegionID()) {
989+
participant->mRegion = region->getRegionID();
990990
setMuteMic(mMuteMic);
991991
}
992992
}

0 commit comments

Comments
 (0)