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:
Latif Khalifa
2009-07-01 13:50:45 +00:00
parent 61cc6acf43
commit 61fc8e61b6
2 changed files with 5 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;
}