summaryrefslogtreecommitdiff
path: root/indra/newview/llhudmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llhudmanager.cpp')
-rw-r--r--indra/newview/llhudmanager.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llhudmanager.cpp b/indra/newview/llhudmanager.cpp
index 40e140253e..31e6318d25 100644
--- a/indra/newview/llhudmanager.cpp
+++ b/indra/newview/llhudmanager.cpp
@@ -176,9 +176,13 @@ void LLHUDManager::sendEffects()
}
if (hep->getNeedsSendToSim() && hep->getOriginatedHere())
{
- gMessageSystem->newMessageFast(_PREHASH_ViewerEffect);
- gMessageSystem->nextBlockFast(_PREHASH_Effect);
- hep->packData(gMessageSystem);
+ LLMessageSystem* msg = gMessageSystem;
+ msg->newMessageFast(_PREHASH_ViewerEffect);
+ msg->nextBlockFast(_PREHASH_AgentData);
+ msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
+ msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
+ msg->nextBlockFast(_PREHASH_Effect);
+ hep->packData(msg);
hep->setNeedsSendToSim(FALSE);
gAgent.sendMessage();
}