diff --git a/libsecondlife/FriendManager.cs b/libsecondlife/FriendManager.cs index 2feb7ba4..279c4fad 100644 --- a/libsecondlife/FriendManager.cs +++ b/libsecondlife/FriendManager.cs @@ -80,8 +80,10 @@ namespace libsecondlife p.AgentData.AgentID = Client.Network.AgentID; p.AgentData.SessionID = Client.Network.SessionID; p.Rights = new GrantUserRightsPacket.RightsBlock[1]; - p.Rights[1].AgentRelated = targetID; - p.Rights[1].RelatedRights = (int)rights; + p.Rights[0] = new GrantUserRightsPacket.RightsBlock(); + p.Rights[0].AgentRelated = targetID; + p.Rights[0].RelatedRights = (int)rights; + Client.Network.SendPacket(p); } ///