From: Pieter-Jan Briers Date: Fri, 27 Jun 2025 13:03:16 +0000 (+0200) Subject: Fix silicons looking at their laws crashing the server (#38623) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5bc778d42e2bd397d219837d5192d2510d4583ac;p=space-station-14.git Fix silicons looking at their laws crashing the server (#38623) --- diff --git a/Content.Server/Silicons/Laws/SiliconLawSystem.cs b/Content.Server/Silicons/Laws/SiliconLawSystem.cs index 8dfc8d51f8..444732b2b3 100644 --- a/Content.Server/Silicons/Laws/SiliconLawSystem.cs +++ b/Content.Server/Silicons/Laws/SiliconLawSystem.cs @@ -270,7 +270,7 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem }; foreach (var law in proto.Laws) { - laws.Laws.Add(_prototype.Index(law)); + laws.Laws.Add(_prototype.Index(law).ShallowClone()); } laws.ObeysTo = proto.ObeysTo;