From 7e6c5e5684e7aa9e7bcdf0ec73f9e5ab4fbc1625 Mon Sep 17 00:00:00 2001 From: Date: Sat, 30 Jun 2007 00:12:36 +0000 Subject: [PATCH] Fixed incomplete/broken Client.Friends.GrantUserRights() - Thanks Thoys! git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1250 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife/FriendManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } ///