fix bounds check in GetLinkSitingAvatar

This commit is contained in:
UbitUmarov
2023-03-11 17:38:06 +00:00
parent b3f876b9a3
commit 6d22429329
2 changed files with 4 additions and 4 deletions

View File

@@ -5704,7 +5704,7 @@ namespace OpenSim.Region.Framework.Scenes
if (AnimationsNames.Count == 0)
return new byte[] { 0 };
using (MemoryStream ms = new MemoryStream())
using (MemoryStream ms = new())
{
byte[] tmp = Utils.UInt16ToBytes((ushort)Animations.Count);
ms.Write(tmp, 0, 2);