From 35fc0a2e8a16e1efe51b80fc509da8d7eeb2b797 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 8 May 2021 03:26:07 +0200 Subject: [PATCH] Fix SolutionAreaEffectSystem exception when the collection is modified. --- .../GameObjects/EntitySystems/SolutionAreaEffectSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/EntitySystems/SolutionAreaEffectSystem.cs b/Content.Server/GameObjects/EntitySystems/SolutionAreaEffectSystem.cs index 0b47246f99..61aae955a7 100644 --- a/Content.Server/GameObjects/EntitySystems/SolutionAreaEffectSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/SolutionAreaEffectSystem.cs @@ -1,4 +1,5 @@ #nullable enable +using System.Linq; using Content.Server.GameObjects.Components.Chemistry; using JetBrains.Annotations; using Robust.Shared.GameObjects; @@ -10,7 +11,7 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - foreach (var inception in ComponentManager.EntityQuery()) + foreach (var inception in ComponentManager.EntityQuery().ToArray()) { inception.InceptionUpdate(frameTime); }