From f127fd56a201d75d6b64b24b9a386f98e5c7fd59 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 5 Feb 2024 18:44:51 +0000 Subject: [PATCH] pesty warning --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 21b5404886..9f4be5a5fa 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -3625,15 +3625,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP reply.Data.ParcelID = parcelID; reply.Data.OwnerID = land.OwnerID; reply.Data.Name = Utils.StringToBytes(land.Name); - if (!string.IsNullOrEmpty(land.Description)) - { - if (land.Description.Length > 254) - reply.Data.Desc = Utils.StringToBytes(land.Description[..254]); - else - reply.Data.Desc = Utils.StringToBytes(land.Description); - } - else - reply.Data.Desc = Array.Empty(); + reply.Data.Desc = Utils.StringToBytes(land.Description, 254); reply.Data.ActualArea = land.Area; reply.Data.BillableArea = land.Area; // TODO: what is this?