From: Pieter-Jan Briers Date: Fri, 22 Nov 2024 17:14:46 +0000 (+0100) Subject: Fix sandbox error with new HWID code. (#33461) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b4ec946bd9f5af7bbc27dd676f294c0c5f4c6847;p=space-station-14.git Fix sandbox error with new HWID code. (#33461) Oops --- diff --git a/Content.Shared.Database/TypedHwid.cs b/Content.Shared.Database/TypedHwid.cs index 6e4a7763b3..253375e9db 100644 --- a/Content.Shared.Database/TypedHwid.cs +++ b/Content.Shared.Database/TypedHwid.cs @@ -34,7 +34,9 @@ public sealed class ImmutableTypedHwid(ImmutableArray hwid, HwidType type) return false; } - hwid = new ImmutableTypedHwid([..array], type); + // ReSharper disable once UseCollectionExpression + // Do not use collection expression, C# compiler is weird and it fails sandbox. + hwid = new ImmutableTypedHwid(ImmutableArray.Create(array), type); return true; }