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
parent
b76405f50a
commit
e4236a4233
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue