Participants List: fix crash when no speaker was added

master
Zi Ree 2025-12-15 00:04:32 +01:00
parent 155d2bdfc2
commit c1a426a888
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ void LLIMSpeakerMgr::updateSpeakers(const LLSD& update)
speakerp = setSpeaker(agent_id); speakerp = setSpeaker(agent_id);
// <FS:Zi> add new speakers to participants list // <FS:Zi> add new speakers to participants list
if (agent_data.has("has_spoken")) if (speakerp.notNull() && agent_data.has("has_spoken"))
{ {
speakerp->mLastSpokeTime = mSpeechTimer.getElapsedTimeF32(); speakerp->mLastSpokeTime = mSpeechTimer.getElapsedTimeF32();
speakerp->mHasSpoken = true; speakerp->mHasSpoken = true;