Send a null result search packet when no results are passsed in

prebuild-update
Melanie 2010-08-26 23:38:35 +01:00
parent 87a6554d4b
commit 5b4e0b72bc
1 changed files with 4 additions and 1 deletions

View File

@ -2724,6 +2724,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
DirPlacesReplyPacket.StatusDataBlock[] status =
new DirPlacesReplyPacket.StatusDataBlock[0];
packet.QueryReplies = replies;
packet.StatusData = status;
foreach (DirPlacesReplyData d in data)
{
int idx = replies.Length;
@ -2762,7 +2765,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
if (replies.Length > 0)
if (replies.Length > 0 || data.Length == 0)
OutPacket(packet, ThrottleOutPacketType.Task);
}