Fox a boo-boo in ExtraParams - a packet with no data blocks could crash

the session. Also allow multiple data blocks.
0.6.5-rc1
Melanie Thielker 2009-05-09 12:04:40 +00:00
parent b76405f50a
commit e4236a4233
1 changed files with 6 additions and 3 deletions

View File

@ -5713,9 +5713,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handlerUpdateExtraParams = OnUpdateExtraParams;
if (handlerUpdateExtraParams != null)
{
handlerUpdateExtraParams(m_agentId, extraPar.ObjectData[0].ObjectLocalID,
extraPar.ObjectData[0].ParamType,
extraPar.ObjectData[0].ParamInUse, extraPar.ObjectData[0].ParamData);
for (int i = 0 ; i < extraPar.ObjectData.Length ; i++)
{
handlerUpdateExtraParams(m_agentId, extraPar.ObjectData[i].ObjectLocalID,
extraPar.ObjectData[i].ParamType,
extraPar.ObjectData[i].ParamInUse, extraPar.ObjectData[i].ParamData);
}
}
break;
case PacketType.ObjectDuplicate: