summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Littman <contact@mikelittman.me>2026-10-04 16:26:18 -0500
committerErik Kundiman <erik@megapahit.org>2026-10-05 14:27:32 +0800
commitf1abdac1b155e8834acf4539a9ec00fab729d006 (patch)
treee2d531dc823ea90d1f0892c1f692f6ce97666a63
parent695133b0e9eae18ca99aee8d8606c297a0394475 (diff)
Fix owner-chat particle crash when the source object is missing
Owner chat with Restrained Love enabled and script chat particles on calls chatter->getPositionAgent() after the object has left gObjectList. The other particle path already checks chatter. This one did not, so the viewer segfaulted.
-rw-r--r--indra/newview/llviewermessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index c4bd9e73ec..33a486b3aa 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -2521,7 +2521,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
{
break;
}
- else if (show_script_chat_particles)
+ else if (chatter && show_script_chat_particles)
{
LLPointer<LLViewerPartSourceChat> psc = new LLViewerPartSourceChat(chatter->getPositionAgent());
psc->setSourceObject(chatter);