From 5b6fc8e423f2e2c0f05587ba863336dbd5a3fc99 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:49:28 +1300 Subject: [PATCH] Fix Gib() enumeration exception (#11910) --- Content.Shared/Body/Components/SharedBodyPartComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Body/Components/SharedBodyPartComponent.cs b/Content.Shared/Body/Components/SharedBodyPartComponent.cs index 2420258894..fcf67afbc5 100644 --- a/Content.Shared/Body/Components/SharedBodyPartComponent.cs +++ b/Content.Shared/Body/Components/SharedBodyPartComponent.cs @@ -291,7 +291,7 @@ namespace Content.Shared.Body.Components { var gibs = new HashSet(); - foreach (var mechanism in _mechanisms) + foreach (var mechanism in _mechanisms.ToArray()) { gibs.Add(mechanism.Owner); RemoveMechanism(mechanism);