Fixed serialization of AgentGroupDataUpdateMessage, problem discovered by unit tests
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2946 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -85,9 +85,11 @@ namespace OpenMetaverse.Tests
|
||||
|
||||
AgentGroupDataUpdateMessage.NewGroupData ng1 = new AgentGroupDataUpdateMessage.NewGroupData();
|
||||
ng1.ListInProfile = false;
|
||||
nblocks[0] = ng1;
|
||||
|
||||
AgentGroupDataUpdateMessage.NewGroupData ng2 = new AgentGroupDataUpdateMessage.NewGroupData();
|
||||
ng2.ListInProfile = true;
|
||||
nblocks[1] = ng2;
|
||||
|
||||
s.NewGroupDataBlock = nblocks;
|
||||
|
||||
|
||||
@@ -1131,7 +1131,7 @@ namespace OpenMetaverse.Messages.Linden
|
||||
|
||||
for (int i = 0; i < GroupDataBlock.Length; i++)
|
||||
{
|
||||
OSDMap group = new OSDMap(7);
|
||||
OSDMap group = new OSDMap(6);
|
||||
group["AcceptNotices"] = OSD.FromBoolean(GroupDataBlock[i].AcceptNotices);
|
||||
group["Contribution"] = OSD.FromInteger(GroupDataBlock[i].Contribution);
|
||||
group["GroupID"] = OSD.FromUUID(GroupDataBlock[i].GroupID);
|
||||
@@ -1149,9 +1149,10 @@ namespace OpenMetaverse.Messages.Linden
|
||||
{
|
||||
OSDMap group = new OSDMap(1);
|
||||
group["ListInProfile"] = OSD.FromBoolean(NewGroupDataBlock[i].ListInProfile);
|
||||
newGroupDataArray.Add(group);
|
||||
}
|
||||
|
||||
map["NewGroupData"] = groupDataArray;
|
||||
map["NewGroupData"] = newGroupDataArray;
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user